Categories:
.NET (961)
C (387)
C++ (185)
CSS (84)
DBA (8)
General (31)
HTML (48)
Java (641)
JavaScript (220)
JSP (109)
JUnit (31)
MySQL (297)
Networking (10)
Oracle (562)
Perl (48)
Perl (9)
PHP (259)
PL/SQL (140)
RSS (51)
Software QA (28)
SQL Server (5)
Struts (20)
Unix (2)
Windows (3)
XHTML (199)
XML (59)
Other Resources:
How To Compile a JUnit Test Class
How To Compile a JUnit Test Class?
✍: Guest
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. 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.
2008-01-11, 6840👍, 0💬
Popular Posts:
How does one iterate through items and records in a specified block? One can use NEXT_FIELD to itera...
How do I use a scriptlet to initialize a newly instantiated bean? A jsp:useBean action may optionall...
.NET INTERVIEW QUESTIONS - Is versioning applicable to private assemblies? Versioning concept is onl...
What are the different storage classes in C? C has three types of storage: automatic, static and all...
What is the difference between strings and character arrays? A major difference is: string will have...