You are provided with a test class SampleClassTests with methods named according to their execution order defined by the test instance lifecycle. This class is intended to test methods of SampleClass which has a complicated instantiation process, so you are also provided with TestUtils helper class with getSampleClassInstance static method that creates instances of SampleClass. However, in order to make TestUtils work, you need run its timeConsumingSetup static method first:
class SampleClass {
public boolean methodOne() {
// Implementation details
}
public boolean methodTwo() {
// Implementation details
}
}
class TestUtils {
static SampleClass getSampleClassInstance() {
// implementation details
}
static void timeConsumingSetup() {
// implementation details
}
}
So your task is to start up TestUtils by calling its timeConsumingSetupmethod, create new instances of SampleClass using the TestUtils.getSampleClassInstance() method (testing each SampleClass method will require a new instance of SampleClass).
Tip: Keep in mind that timeConsumingSetup is really time consuming as its name says.