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
Jax.ax1308Jax.ax1308 

Test Class Help

I have built a simple controller for a Flow. Can anyone please help me with a simple test class for this? 

Thanks in advance! 

 



public class QuoteController {

public Flow.Interview.Quote myQuoteFlow { get; set; }

public String getmyID() {
if (myQuoteFlow==null) return '';
else return myQuoteFlow.AccountID;
}

public PageReference getNextPage(){
PageReference p = new PageReference('/' + getmyID() );
p.setRedirect(True);
return p;
}

}