You need to sign in to do that
Don't have an account?
St2018
Need help on writing unit test for this method?
Im not sure how to get started unit test this method below.
private static double setAfterSave(Opportunity deal) { double returnValue; if(deal.Restaurant__c) { returnValue = deal.HVAC__c == null ? 0 : deal.HVAC__c; } else { returnValue = deal.HVAC__c == null ? 0 : deal.HVAC__c; } return returnValue; }
You can try something like this. Hope this helps.
All Answers
You can try something like this. Hope this helps.
@Gauravendra
@ Raj Vakati
Im getting these two error messages.
1. Missing return statement required return type:Double
2 Method is not visible: Double
and use the same test class
https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_classes_annotation_testvisible.htm