Without Book Interview Questions and Answers | Online Test | Moct Test
Download Android App in your Android Device from Google Play Store
- Search for "Withoutbook Practice Exam Test" in Mobile/Tablet Play Store
Institute Training Search by Name or Email

Exams Attended

Make Homepage

Bookmark this page

Subscribe Email Address

JUnit Interview Questions and Answers

Ques. How To Compile a JUnit Test Class?
Ans. As JUnit code is written in java, compiling 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 like junit.jar etc. For example, to compile the test class LoginTest.java described previously, you should do this:

javac -cp junit-4.4.jar LoginTest.java

and it will create .class file.
LoginTest.class

The compilation is ok, if you see the LoginTest.class file.
Is it helpful? Yes No

Most helpful rated by users:

©2017 WithoutBook