-
Queries Related To Apex Test Class
I have a few queries related to test class in general
1. What does running a test class in system mode mean?
Does it mean running the test class in the context of the current user and is that same as saying :
System.runAs(new User((Id=UserInfo.getUserId()) ))2. what does test.startTest() and test.endTest() means.
Log In to reply.
Popular Salesforce Blogs
Manual Sharing Using Apex in Salesforce - Best Practices
Apex Managed Sharing Sharing rules, they enable us to make exceptions to organization wide defaults for certain users as per our requirement.We cannot make give…
Top 10 New features of Salesforce Community Cloud Summer ’20 Release
Bonjour à tous! What a wonderful time of the year. With the sun shining brightly down, you want to forget everything happening around you and…
Popular Salesforce Videos
Data Import: Clean and Prepare Your Data Using Excel | Salesforce
Cleaning and Preparing Data Using Excel covers several features and functions that will make quick work of getting your data files ready for import. Vlookup,…
Object Oriented Programming - Salesforce Developer Tutorial
In relation to programming languages, object-oriented means that the code focuses on describing objects. An object can be anything that has unique characteristics, such as…
The Decorator Pattern in Salesforce | Design Patterns | Salesforce
It attempts to solve the issue where you need temporary fields for processing (typically in Visualforce/LWC/Aura) but does not need to add these fields to…