Created
November 20, 2018 11:37
-
-
Save swapnilshrikhande/50ee7d2f48a941e61d35a52bf5ce396b 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
interface TestDataGenerator { | |
public SObject createRecord(String objectName); | |
public List<String> getRequiredFields(String objectName); | |
public Map<String,String> getTestData(String objectName); | |
} | |
public class DefaultTestDataGenerator implements TestDataGenerator { | |
} | |
public class AccountTestDataGenerator extends DefaultTestDataGenerator implements TestDataGenerator { | |
pub getTestData(){ | |
} | |
} | |
List Custom Setting | |
Account -> AccountTestDataGenerator | |
Opportunity -> DefaultTestDataGenerator |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment