Advertisement
Guest User

Untitled

a guest
Jul 27th, 2017
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. private static testMethod void test() {
  2. Exception ee = null;
  3. try{
  4. utilclass.disableAll(UserInfo.getUserId());
  5. Test.startTest();
  6.  
  7. initTestData();
  8.  
  9. ABCclass abc = new ABCclass();
  10. Object[] data = abc.abcclassmethod(searchFields, '', null, 0, 0);
  11.  
  12. System.assert(data.size() > 0, 'No data available');
  13. data.clear();
  14.  
  15. } catch(Exception e){
  16. ee = e;
  17. } finally {
  18. Test.stopTest();
  19. utilclass.enableAll(UserInfo.getUserId());
  20. if(ee != null){
  21. throw ee;
  22. }
  23. }
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement