Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Eclipse doesn't use JUnit 4.10 Docs

Can anybody give me advice on why my eclipse doesn't use the junit-docs? I'm using Eclipse Java EE IDE for Web Developers Juno Service Release 1 and the recent Oracle Java7 Version in ArchLinux.

thanks, Andreas

like image 455
Aruscher Avatar asked Dec 03 '12 12:12

Aruscher


People also ask

Why does Eclipse not show JUnit?

That kind of J icon filled to a "bubble" means that Eclipse doesn't recognize your project as a Java project, and therefore doesn't provide Java options such as Run as JUnit. Try reimporting the project as a Java Project.


1 Answers

I'm using the same version of Eclipse and I found that the JUnit javadocs link was pointing to a broken URL: http://www.junit.org/junit/javadoc/4.5. To change this, do the following

  1. In Package Explorer, right-click your project and select Build Path --> Configure Build Path.
  2. Under the libraries tab, expand JUnit 4 and junit.jar.
  3. Select the Javadoc location and click "Edit".
  4. In the Javadoc URL section, change the Javadoc location path to http://junit.sourceforge.net/javadoc/ or another version specific link.
like image 184
John Galambos Avatar answered Sep 30 '22 13:09

John Galambos