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.
We cannot access variables which made in @testSetup method at @isTest method.
The example is shown as below.
The solution is to select the test data by using SOQL again.