private static testMethod void test() {
Exception ee = null;
try{
utilclass.disableAll(UserInfo.getUserId());
Test.startTest();
initTestData();
ABCclass abc = new ABCclass();
Object[] data = abc.abcclassmethod(searchFields, '', null, 0, 0);
System.assert(data.size() > 0, 'No data available');
data.clear();
} catch(Exception e){
ee = e;
} finally {
Test.stopTest();
utilclass.enableAll(UserInfo.getUserId());
if(ee != null){
throw ee;
}
}
}
While executing I am getting the below error:
System.FinalException: Testing has not started
Test.stopTest();
. It must be precede by a call ofTest.startTest();