Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement