Salesforce Apex: Using System.Assert()

When developing a Test class in Salesforce, System.Assert enables you to test your assumptions about your code. This is useful to verify the business logic in the Apex Classes you have created.     Similar to Java, the assertion will cause an exception in Salesforce. Normally, we will not use it on Trigger or Apex class but it…

Read More