Another Salesforce blog!!!

Salesforce, Apex

September, 2016

parent and child relationshiop

ChildRelationship

Favorite

define the width on apex:pageBlockTable columns

columnsWidth=”60%,20%,10%,10%”

Favorite

Six Tips to Great Unit Tests

Six Tips to Great Unit Tests Favorite

How to test for an exception(‘addError’) in a Trigger

I have a trigger, which detects error conditions and feeds errors to the class or field. This gives a nice result interactively, in the GUI. But how do I write test code to catch these errors ? Is there a System.AssertException(), or the equivalent ? The idea is to: a. Write code in the test […]

Test.startTest() and Test.stopTest()

The test method contains the Test.startTest() and Test.stopTest() method pair, which delimits a block of code that gets a fresh set of governor limits. In this test, test-data setup uses two DML statements before the test is performed. To test that Apex code runs within governor limits, isolate data setup’s limit usage from your test’s. […]

Custom Labels Apex Class

Source Link In Apex use the System.Label.Label_name syntax. You can access these custom labels like this:

Favorite