All Projects → dhoechst → Salesforce Test Factory

dhoechst / Salesforce Test Factory

Licence: mit
SObject factory that can be used in unit tests to create test data.

Labels

Projects that are alternatives of or similar to Salesforce Test Factory

Testdatafactory
The ultimate Apex Test Data Factory 🏭
Stars: ✭ 108 (-41.3%)
Mutual labels:  apex
Salesforce Lookup Rollup Summaries
Apex utility classes that makes it easy to write trigger that rollup on LOOKUP parent child relationships.
Stars: ✭ 126 (-31.52%)
Mutual labels:  apex
Automation Components
Automation Components are a collection of reusable and production-ready extensions that include invocable actions, flow screen components and local actions.
Stars: ✭ 141 (-23.37%)
Mutual labels:  apex
Df12 Deployment Tools
Stars: ✭ 112 (-39.13%)
Mutual labels:  apex
Fflib Apex Common Samplecode
Samples application illustrating the Apex Enterprise Patterns library
Stars: ✭ 121 (-34.24%)
Mutual labels:  apex
Attic Apex Malhar
Mirror of Apache Apex malhar
Stars: ✭ 131 (-28.8%)
Mutual labels:  apex
Easy Spaces Lwc
Sample application for Lightning Web Components on Salesforce Platform. Part of the sample gallery. Event management use case. Get inspired and learn best practices.
Stars: ✭ 104 (-43.48%)
Mutual labels:  apex
Force Di
Generic DI library with support for Apex, Triggers, Visualforce and Lightning
Stars: ✭ 165 (-10.33%)
Mutual labels:  apex
Visualforce Table Grid
Flexible and highly customizable Visualforce table grid component. Salesforce.com Classic Look and Feel.
Stars: ✭ 126 (-31.52%)
Mutual labels:  apex
Fast Reid
SOTA Re-identification Methods and Toolbox
Stars: ✭ 2,287 (+1142.93%)
Mutual labels:  apex
Node Lambda Log
Basic logging mechanism for Node 6.10+ Lambda Functions
Stars: ✭ 115 (-37.5%)
Mutual labels:  apex
Apex Nitro
Your essential APEX companion
Stars: ✭ 122 (-33.7%)
Mutual labels:  apex
Dreamhouse Lwc
Sample application for Lightning Web Components on Salesforce Platform. Part of the sample gallery. Real estate use case. Get inspired and learn best practices.
Stars: ✭ 136 (-26.09%)
Mutual labels:  apex
Sfdx Dreamhouse
Stars: ✭ 110 (-40.22%)
Mutual labels:  apex
Custommetadataloader
Tool to help users bulk create and update custom metadata records in salesforce.com from a CSV file.
Stars: ✭ 142 (-22.83%)
Mutual labels:  apex
Zippex
Native Apex Zip library for Salesforce.com
Stars: ✭ 106 (-42.39%)
Mutual labels:  apex
Pytorch Imagenet Cifar Coco Voc Training
Training examples and results for ImageNet(ILSVRC2012)/CIFAR100/COCO2017/VOC2007+VOC2012 datasets.Image Classification/Object Detection.Include ResNet/EfficientNet/VovNet/DarkNet/RegNet/RetinaNet/FCOS/CenterNet/YOLOv3.
Stars: ✭ 130 (-29.35%)
Mutual labels:  apex
Eda
Education Data Architecture
Stars: ✭ 175 (-4.89%)
Mutual labels:  apex
Dreamhouse Sfdx
Salesforce Sample App part of the sample gallery. Real estate use case. Get inspired and learn best practices.
Stars: ✭ 164 (-10.87%)
Mutual labels:  apex
Prettier Plugin Apex
Code formatter for the Apex Programming Language
Stars: ✭ 138 (-25%)
Mutual labels:  apex

Salesforce-Test-Factory

SObject factory that can be used in unit tests to create test data.

Install as an unlocked package: https://login.salesforce.com/packaging/installPackage.apexp?p0=04t2G000000Y19lQAC

Usage:

// The TestFactory will pre-fill all the fields we typically need
Account a = (Account)TestFactory.createSObject(new Account());
insert a;

// You can also set values to be used. Any values set in the constructor will override the defaults
Opportunity o = (Opportunity)TestFactory.createSObject(new Opportunity(AccountId = a.Id));

// You can also specify a specific set of overrides for different scenarios
Account a = (Account)TestFactory.createSObject(new Account(), 'AccountDefaults');

// Finally, get a bunch of records for testing bulk
Account[] aList = (Account[])TestFactory.createSObjectList(new Account(), 200);

// You can optionally insert records as created like this:
// Note the final parameter of true.
Account a = (Account) TestFactory.createSObject(new Account(), true);
Contact c = (Contact) TestFactory.createSObject(new Contact(AccountID = a.Id), true);
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].