I have this problem in eclipse:
I don't know why it kee[s telling me that its not accessible.
I tried to find a solution onlines and tried a couple but couldn't work it.
I have this problem in eclipse:
I don't know why it kee[s telling me that its not accessible.
I tried to find a solution onlines and tried a couple but couldn't work it.
Your line 2
import static org.juni
Is 1) incorrect, and 2) not terminated with a ;
(semicolon). So the compiler assumes your line 4 is a continuation of this broken one, which is still an error.
In all likelihood, you want your line 2 to be:
import static org.junit.Assert.*;
There is also a bug in eclipse (using version 2022-06 (4.24.0), build id: 20220609-1112) that causes such problems. You will get such error messages if you chose to create a Java project with the module-info.java
file. You may add the "missing" methods to this file, but you will get runtime errors, as they are still missing.
The moment you delete this file, the JUnit errors vanish!