Skip to content

Test record generator for unit tests in Salesforce's Apex language

License

Notifications You must be signed in to change notification settings

dirkvandelindt/TestSObjectBuilder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Test SObject Builder for Salesforce Apex

Deploy to Salesforce

Overview

This is an freestanding version of the Nebula framework's test SObject builder, used to generate test records for unit tests - it has been updated to remove any dependencies on the rest of the Nebula framework.

Implementation

TestSObjectBuilder.cls is the primary focus of this project - to leverage it, create a class that extends TestSObjectBuilder.Base. 2 sample classes have been included in the repo

  • TestAccountBuilder.cls - demonstrates the most basic implementation of TestSObjectBuilder.Base
  • TestContactBuilder.cls - demonstrates how to make additional fields, like contact.AccountId, required to be populated by adding a new constructor with an account ID parameter

About

Test record generator for unit tests in Salesforce's Apex language

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages