안녕하세요.
아래와 같은 코드를 junit 으로 돌리면
Test Method 수행 순서가
Test1() -> Test2() 입니다.(Method 이름으로 수행순서가 정해짐)
Test2() -> Test1() 로 수행 순서를 임의로 정하고 싶은데,
어떻게 하면 되나요?
최근 JUNIT4 는 어노테이션으로 수행순서 지정이 가능한거 같은데..
전 하위버전 호환 문제로 JUNIT4 로 코딩이 안되는거 같더라구요..
혹시 ApplicationTestCase 로 테스트 함수 호출 순서 지정가능한 방법 아시면
답글 부탁드립니다.
public class Test extends ApplicationTestCase<MyApplication> {
public Test() {
super(MyApplication.class);
}
@Override
public void setUp() throws Exception {
super.setUp();
}
public void test1() throws Exception {
}
public void test2() throws Exception {
}
@Override
public void tearDown() throws Exception {
supder.tearDown();
}
}