I am trying to execute test methods which are annotated by @Test in specific order.
I have tried this example:
public class MyTest {
@Test public void test1(){}
@Test public void test2(){}
}
I want to make sure that test1() to run before test2() each time when I run MyTest, but I couldn't find annotation like @Test(order=xx).
It is important feature for JUnit, if author of JUnit doesn't want the order feature, why?