You need to sign in to do that
Don't have an account?
Vidys Sagar
I need test class for the class given below
global static SearchJSONclass doPost(String SearchValue,String SelectedCarrier,String ProNumber,String FromDate,String ToDate,String Offset)
{
String SearchText;
if(!SearchValue.equals('') || !String.isEmpty(SearchValue))
{
SearchText = SearchValue;
}
else
{
SearchText = 'SR';
}
{
String SearchText;
if(!SearchValue.equals('') || !String.isEmpty(SearchValue))
{
SearchText = SearchValue;
}
else
{
SearchText = 'SR';
}
It is better if you can post the whole apex class here. anyway try like this(change the parameters according to the method body/condiotns).
@isTest
public class apexTestTest {
public static testMethod void check(){
SearchJSONclass.doPost('', '', '', '' , '', '');
}
}