Skip to main content

I have created an apex class with an @InvocableMethod and it works beautifully in my Sandbox, returning a single string converted from an actual return type of List<Response>. Now I need to create a test class and have only one problem remaining when calling the class. The line

List<Response> testGetHull = GW_SRO_Get_HullId.getIdFromString(new List<Request>{hullid});

gives the error: Method does not exist or incorrect signature: void getIdFromString(List<GW_SRO_Get_HullIdTest.Request>) from the type GW_SRO_Get_HullId 

hullid is populated with a single Request inputstring and the method returns List<Response> 

What could be wrong here? 

 

 

 

#Salesforce Developer

1 answer
  1. May 29, 8:43 PM

    Interesting situation ... after submitting a ticket about this to Salesforce and finding out that they will have to research it, I tried a different angle. 

    I opened Vibes and told it to create a test class for me. I thought it was going well until I tried to deploy that test class and the TestDataFactory class that it created. That class wouldn't even get enough code coverage to deploy. When it comes to agents, flows and especially vibe coding I am losing confidence in Salesforce.

0/9000