junit.framework.TestCase 상속자 내부의 JUnit 4 @Test 어노테이션이 추가된 메서드를 보고합니다. JUnit의 API를 결합하면 테스트 실행 문제가 발생할 수 있습니다.

예:


  public class MyTest extends TestCase {
      @Test //이름이 'test'로 시작되지 않으므로 무시됩니다
      public void wouldBeIgnored() {}
  
      @Test   //이름이 'test'로 시작되므로
      @Ignore //@Ignore 어노테이션이 있어도 실행됩니다
      public void testWouldBeExecuted() {}
  }

제공된 수정: