public class TestclassSample {
@Test
public void dependsOnMethods() {
System.out.println("dependsOnMethods");
}
@Test(dependsOnMethods = "dependsOnMethods")
public void test2() {
System.out.println("test2");
}
}
How to ensure that dependsOnMethods and test2 are executed under the same thread when multi-threaded execution
How to ensure that dependsOnMethods and test2 are executed under the same thread when multi-threaded execution