Mock-Data-Layer-Pattern
ApexDI
Mock-Data-Layer-Pattern | ApexDI | |
---|---|---|
1 | 2 | |
9 | 34 | |
- | - | |
1.8 | 6.8 | |
over 2 years ago | 7 months ago | |
Apex | Apex | |
- | Apache License 2.0 |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Mock-Data-Layer-Pattern
-
How to mock formulas and read-only fields in Apex tests?
A while ago we explored the Mock Data Layer Pattern, which allows us to mock virtually any relationships between records within your tests. This is especially handy when trying to improve the performance of these tests - more details here.
ApexDI
-
Construct Apex Instances With Generic Type Syntax
If you are in favor of the following service initialization syntax, it is now supported by Apex DI library.
-
Apex DI - A Lightweight & Flexible Salesforce Dependency Injection Framework
Here is an example controller to use ApexDI to resolve services. As you can see, the controller doesn't depend on concrete types, it becomes thin and clean! if you are interested: 1. GitHub Library Apex DI 2. Medium Article Salesforce Dependency Injection with Apex DI;
What are some alternatives?
ApexTestKit - A way to simplify your Salesforce data creation and method stubbing.
Iris - The fastest HTTP/2 Go Web Framework. New, modern and easy to learn. Fast development with Code you control. Unbeatable cost-performance ratio :rocket:
apex-rollup - Fast, configurable, elastically scaling custom rollup solution. Apex Invocable action, one-liner Apex trigger/CMDT-driven logic, and scheduled Apex-ready.
react-lightning - Boilerplate for developing React components on Salesforce
NebulaLogger - The most robust logger for Salesforce. Works with Apex, Lightning Components, Flow, Process Builder & Integrations. Designed for Salesforce admins, developers & architects.
salesforce-round-robin - Round robin records in Salesforce (SFDC) in Flow & Apex
apex-fp - Functional programming for Salesforce Apex
Guice - Guice (pronounced 'juice') is a lightweight dependency injection framework for Java 11 and above, brought to you by Google.
sfdx-mass-action-scheduler - 🚀 Declaratively schedule Process Builder, Flows, Quick Actions, Email Alerts, Workflow Rules, or Apex to process records from Reports, List Views, SOQL, or Apex.
Dagger2 - A fast dependency injector for Android and Java.
sfdc-trigger-framework - A minimal trigger framework for your Salesforce Apex Triggers
apex-recipes - A library of concise, meaningful examples of Apex code for common use cases following best practices.