Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * @author : Sumitkumar Shingavi (sumi.shingavi@gmail.com)
- * @date : 04/18/2015
- * @description : Apex test class for AccountTrigger
- */
- @isTest(SeeAllData=FALSE)
- private class AcccountTriggerTest {
- //This method will be called before every unit test method you have in this test class
- @testSetup static void testSetupData() {
- //Step 1: Create Trigger_Control__c custom setting object and mark Account_Trigger__c = TRUE
- //Step 2: Create Data Records
- }
- //Positive unit test
- static testMethod void testAccountTriggerPositive() {
- Test.startTest();
- //Your unit testing code here
- System.assertEquals('Test', 'Test');
- System.assertNotEquals('Test', 'MyTest');
- Test.stopTest();
- }
- //Negative unit test
- static testMethod void testAccountTriggerNegative() {
- Test.startTest();
- //Your unit testing code here
- System.assertEquals('Test', 'Test');
- System.assertNotEquals('Test', 'MyTest');
- Test.stopTest();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement