function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
James BillingsJames Billings 

Getting values back out of class that was updated in a Queueable within test

I have a Queueable class which uses a 3rd party package to do some callouts to another system, and I'm trying to write some tests for my class. 

I've created my own fake instance of the API, where the methods simply set properties... Simplified example:

public class FakeApiTest implements IApi
{
     public String passedQueryString;

     public List<Object> QueryObjects(String queryString)
     {
            passedQueryString = queryString;
            return new List<Object>{};
     }
}


In my test, I pass in an instance of the above to my Queueable, but if I try and retrieve the property values after my Queueable executes (wrapped within StartTest/StopTest), it's always null.

Any ideas how I can get my values back out?