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
Vidys SagarVidys 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';
        }
        
Sampath SuranjiSampath Suranji
Hi Vidys Sagar,
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('', '', '', '' , '', '');
    }
}