+ 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;
}

}