document.write('
Data hosted with ♥ by Pastebin.com - Download Raw - See Original
  1. /*
  2. * @author : Sumitkumar Shingavi (sumi.shingavi@gmail.com)
  3. * @date : 04/18/2015
  4. * @description : Apex test class for AccountTrigger
  5. */
  6. @isTest(SeeAllData=FALSE)
  7. private class AcccountTriggerTest {
  8.  
  9. //This method will be called before every unit test method you have in this test class
  10. @testSetup static void testSetupData() {
  11.  
  12. //Step 1: Create Trigger_Control__c custom setting object and mark Account_Trigger__c = TRUE
  13.  
  14. //Step 2: Create Data Records
  15. }
  16.  
  17. //Positive unit test
  18. static testMethod void testAccountTriggerPositive() {
  19.  
  20. Test.startTest();
  21.  
  22. //Your unit testing code here
  23.  
  24. System.assertEquals('Test', 'Test');
  25. System.assertNotEquals('Test', 'MyTest');
  26.  
  27. Test.stopTest();
  28. }
  29.  
  30. //Negative unit test
  31. static testMethod void testAccountTriggerNegative() {
  32.  
  33. Test.startTest();
  34.  
  35. //Your unit testing code here
  36.  
  37. System.assertEquals('Test', 'Test');
  38. System.assertNotEquals('Test', 'MyTest');
  39.  
  40. Test.stopTest();
  41. }
  42. }
');