You need to sign in to do that
Don't have an account?
Abel Palma
I need help with a test class
I'm a little confused here, I need to do a test class for cover this lines, but i don´t know how
public class WebServiceController { public string selectedValue{get;set;} public void retrieveValue(){ system.debug('Id del cliente' + selectedValue); WebserviceClass.WebserviceClss(selectedValue); } }I'm trying to do something like this, but I have errors.
public static testmethod void retrieveValueCtrllr(){ //String selectedValue='D0000001'; WebServiceController.selectedValue.set=('D0000001'); //WebServiceController.retrieveValue(selectedValue) ; }
All Answers
Please try below code
Let us know if this will help you
obj.selectedValue='D0000001';