How to write Unit Tests with ServiceLocator

The service locator pattern is a design pattern used in software development to encapsulate the processes involved in obtaining a service with a strong abstraction layer. We already mention it in our article: How to develop a flexible Apex code for Salesforce.

Salesforce Unit Test Best Practices

Testing is the key to successful long-term development and is a critical component of the development process. Unit tests validate that your application works as expected, that there are no unexpected behaviors. Apex provides a testing framework that allows you to write unit tests, run your tests, check test results, and have code coverage results.

How to increase code coverage quickly in Salesforce

One of the requirements from Salesforce to deploy Apex code to the production environment or upload package to the Salesforce AppExchange related with Ape[ code coverage. Unit tests must cover at least 75% of your Apex code, and those tests must pass. Code coverage indicates how many executable lines of code in your classes and […]

How to develop flexible Apex code for Salesforce

Day-to-day developer work related not only with writing new functionality but updating existing ones. When a developer tasked with adding a new feature to an existing application, the goal is to extend the functionality of that application with new behaviors. Extending software is the introduction of a new behavior by the addition of code. Some applications are flexible to […]

How to Increase Salesforce Governor Limits

Salesforce is known as CRM with a lot of Limits. Because Salesforce Apex runs in a multitenant environment, the Apex runtime engine strictly enforces limits so that runaway Apex code or processes don’t monopolize shared resources. If some Apex code exceeds a limit, the associated governor issues a runtime exception that cannot be handled.

10 helpful Salesforce Summer ’20 Features

In accordance with the current situation in our life, everything has slowed down. Salesforce, being on the crest of the wave, delivers new features on time. Here are 10 things that I think are particularly interesting.