• Ryan Zimmerman
  • NEWBIE
  • 0 Points
  • Member since 2016

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
    Questions
  • 1
    Replies
Hi,

I've implemented queueable apex on 2 chained classes: class a and class b. 

In Class A, when the class 2 gets invoked a list gets also passed into class b.

while the test cflass for class a is fine, I am unable to get coverage for class 2. 

Any ideas about how to write the test class for this scenario?
 
public class classA implements Queueable, Database.AllowsCallouts {

    
    public void execute(QueueableContext context) {

do something...

List<id> myList;

System.enqueueJob(new blassB(myList);

....