JUnit 4 テストクラスに変換できる JUnit 3 テストクラスを報告します。

例:


  public class MainTestCase extends junit.framework.TestCase {
    public void test() {
      Assert.assertTrue(true);
    }
  }

クイックフィックス適用後:


  public class MainTestCase {
    @org.junit.Test
    public void test() {
      Assert.assertTrue(true);
    }
  }

このインスペクションは、プロジェクトまたはモジュールの言語レベルが 5 以上で、クラスパスで JUnit 4 が使用可能な場合にのみ報告します。