How to test java code in Eclipse?
I have project created in eclipse. Can you please guide me how can i test it on Eclipse? Where can i get the relevant eclipse version and how to do that?
The project file conta开发者_运维知识库ins the following details:
<buildSpec>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.jdt.core.javanature</nature>
</natures>
Read about Eclipse with JUnit here: http://www.vogella.de/articles/JUnit/article.html
Since Erich Gamma was on the same plane as Kent Beck when JUnit was born, he integrated this tightly into the Eclipse IDE as a standard feature of the JDT.
If you open the help and navigate to
Java development user guide > Getting Started > Basic tutorial
there is a nice tutorial tuned to eclipse.
BTW : any version of eclipse will do, since it is in there since as as I can remember, at least since 3.1.
Download the latest eclipse from the eclipse site. Eclipse comes with JUnit. Read about JUnit in the junit site. It should take you 5 minutes to figure it out from there.
精彩评论