Home > Enterprise >  org.junit.test is not accessible in eclipse
org.junit.test is not accessible in eclipse

Time:11-27

I have this problem in eclipse:

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.

CodePudding user response:

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.*; 
  • Related