I'm having a test class, which runs test methods based on static data.
public SampleTest {
public static int static_data;
@test
public static test() {
// Test logic using static_data
}
}
this static data i want to pass it from testsuite.
My test suite looks like this,
@RunWith(Suite.class)
@Suite.SuiteClasses({SampleTest.class, SampleTest.class})
public class SampleTestSuite {
}
Before calling SampleTest, each time i want to pass a different sample_data,
So based on that, different logic can be tested.
I tried with @beforeclass in testSuite, but it's calling only once.
Is there any annotation, which will be called before calling eatch test class.
So I can pass a different value ?