How To Compile a JUnit Test Class?
Submitted by: AdministratorCompiling a JUnit test class is like compiling any other Java classes. The only thing you need watch out is that the JUnit JAR file must be included in the classpath. For example, to compile the test class HelloTest.java described previously, you should do this:
javac -cp junit-4.4.jar HelloTest.java
dir HelloTest.*
453 HelloTest.class
183 HelloTest.java
The compilation is ok, if you see the HelloTest.class file.
Submitted by: Administrator
javac -cp junit-4.4.jar HelloTest.java
dir HelloTest.*
453 HelloTest.class
183 HelloTest.java
The compilation is ok, if you see the HelloTest.class file.
Submitted by: Administrator
Read Online JUnit Job Interview Questions And Answers
Top JUnit Questions
☺ | What Is JUnit? |
☺ | Why Does Poeple Import org.junit.Assert Statically? |
☺ | How To Wirte a Simple JUnit Test Class? |
☺ | Why Do You Use JUnit to Test Your Code? |
☺ | How Do You Launch a Debugger When a Test Fails? |
Top Testing Categories
☺ | Manual Testing Interview Questions. |
☺ | Rational TestSuite Interview Questions. |
☺ | QTP Interview Questions. |
☺ | Database Testing Interview Questions. |
☺ | Software QA Interview Questions. |