Junit に属するパッケージのプロジェクトでコンパイル エラーが発生しました ( 内org.junit, org.junit.experimental.results, org.junit.internal, org.junit.internal.matchers, org.junit.matchers, org.junit.rules
)。
このすべてのクラスは、プロジェクトの junit パッケージの下にあります。つまり、Security/src/org.junit, Security/src/org.junit.experimental.results
はSecurity
プロジェクトの名前です。私が書いた私のクラスは、私が定義した他のパッケージの下にあります:Security/src/myPackage/myClass
これらすべてのクラスで、インポート行でコンパイル エラーが発生します。次に例を示します。
import org.hamcrest.Description cannot be resolved
import org.hamcrest.Matcher cannot be resolved;
import static org.junit.matchers.JUnitMatchers.containsString cannot be resolved;
チェックは問題なく進んでいます (緑/赤のバーが表示され、正しい結果が得られます) が、この問題により、すべてのプロジェクトでエラーが発生します。