例:
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 がある場合にのみ報告します。