Created
September 17, 2013 19:14
-
-
Save noeticpenguin/6599276 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//In your test… | |
@isTest | |
static void test_method_one() { | |
//If you're not using SmartFactory, you're doing it way too hard. (and wrong) | |
Account account = (Account)SmartFactory.createSObject('Account'); | |
insert account; | |
Test.startTest(); | |
MyFarawayClass.RunMockCalloutForTest(account.id); | |
Test.StopTest(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment