Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to test java code in Eclipse?

Tags:

java

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 contains 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>
like image 406
fawad Avatar asked Mar 12 '26 13:03

fawad


2 Answers

Read about Eclipse with JUnit here: http://www.vogella.de/articles/JUnit/article.html

like image 63
Andreas Avatar answered Mar 14 '26 03:03

Andreas


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.

like image 41
Peter Tillemans Avatar answered Mar 14 '26 03:03

Peter Tillemans



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!