BeforeClass Annotation (Developer Preview)
Use the BeforeClass annotation to set up test data shared across methods within an
integration test class.
The annotation is applied to a static method that runs once before the integration test methods in a class. Use this annotation to create data shared by the test methods. If the method completes successfully, the platform commits its transaction automatically. Don’t call Test.commitTestOnly() from a @BeforeClass method. If the method fails, the integration test methods fail.