2 added 38 characters in body
source | link

I got the security scan report, in that, they mentioned 'Test Methods With No Assert' for method 'doInvoke()' method of WebServiceMock Interface.

The 'doInvoke()' is not test method but it is a mock interface method which is used to mock the SOAP API-Callout.

Also there is a getter/setter variable in test class, for that also i got 'Test Methods With No Assert'.

e.g. @isTest

private class ABC {

@isTest

private class ABC {

    static BV_Behavior_Mapping__c bm {get; set;}    
//got 'Test Methods With No Assert' for this variable
    ---

}

//got 'Test Methods With No Assert' for this variable ---

}

Does anyone know why security scan gives 'Test Methods With No Assert' for method 'doInvoke() and getter/setter variable?

I got the security scan report, in that, they mentioned 'Test Methods With No Assert' for method 'doInvoke()' method of WebServiceMock Interface.

The 'doInvoke()' is not test method but it is a mock interface method which is used to mock the SOAP API-Callout.

Also there is a getter/setter variable in test class, for that also i got 'Test Methods With No Assert'.

e.g. @isTest

private class ABC {

static BV_Behavior_Mapping__c bm {get; set;}    

//got 'Test Methods With No Assert' for this variable ---

}

Does anyone know why security scan gives 'Test Methods With No Assert' for method 'doInvoke() and getter/setter variable?

I got the security scan report, in that, they mentioned 'Test Methods With No Assert' for method 'doInvoke()' method of WebServiceMock Interface.

The 'doInvoke()' is not test method but it is a mock interface method which is used to mock the SOAP API-Callout.

Also there is a getter/setter variable in test class, for that also i got 'Test Methods With No Assert'.

e.g.

@isTest

private class ABC {

    static BV_Behavior_Mapping__c bm {get; set;}    
//got 'Test Methods With No Assert' for this variable
    ---

}

Does anyone know why security scan gives 'Test Methods With No Assert' for method 'doInvoke() and getter/setter variable?

1
source | link

Security scan of salesforce gives 'Test Methods With No Assert' for doInvoke() method of WebServiceMock Interface

I got the security scan report, in that, they mentioned 'Test Methods With No Assert' for method 'doInvoke()' method of WebServiceMock Interface.

The 'doInvoke()' is not test method but it is a mock interface method which is used to mock the SOAP API-Callout.

Also there is a getter/setter variable in test class, for that also i got 'Test Methods With No Assert'.

e.g. @isTest

private class ABC {

static BV_Behavior_Mapping__c bm {get; set;}    

//got 'Test Methods With No Assert' for this variable ---

}

Does anyone know why security scan gives 'Test Methods With No Assert' for method 'doInvoke() and getter/setter variable?