It's All Writing.

Writing makes you happy.

Entries from 2019-09-19 to 1 day

How to get data which made in @testSetup method at Apex

Environment Apex Prerequisites We cannot access variables which made in @testSetup method at @isTest method. The example is shown as below. Solution The solution is to select the test data by using SOQL again. gist.github.c…