Categories:
Audio (13)
Biotech (29)
Bytecode (36)
Database (77)
Framework (7)
Game (7)
General (507)
Graphics (53)
I/O (35)
IDE (2)
JAR Tools (101)
JavaBeans (21)
JDBC (121)
JDK (426)
JSP (20)
Logging (108)
Mail (58)
Messaging (8)
Network (84)
PDF (97)
Report (7)
Scripting (84)
Security (32)
Server (121)
Servlet (26)
SOAP (24)
Testing (54)
Web (15)
XML (309)
Collections:
Other Resources:
Run Sample with junit-3.8.1.jar in GUI Mode
How to run sample program with junit-3.8.1.jar in GUI mode? I have Calculator.java and the JUnit test program, CalculatorTest.java ready.
✍: FYIcenter.com
junit-3.8.1.jar is the version 3.8.1 of JUnit JAR library file. It provides two execution modes: text mode and GUI mode.
To run the JUnit test program, CalculatorTest.java in GUI mode, you need launch the junit.swingui.TestRunner class and specify the test program class as the parameter:
\fyicenter>java -version java version "1.8.0_45" \fyicenter>java -cp .;\local\lib\junit-3.8.1.jar junit.swingui.TestRunner CalculatorTest
The test will be performed on a Swing GUI screen with test result displayed, see the picture below:
⇒ FAQ for JUnit (Java Unit) Testing
2016-03-12, 2996🔥, 0💬
Popular Posts:
itextpdf.jar is a component in iText 5 Java library to provide core functionalities. iText Java libr...
Apache Axis2 is the core engine for Web services. It is a complete re-design and re-write of the wid...
What Is log4j-1.2.15.jar? I got the JAR file from apache-log4j-1.2.15.zip. log4j-1.2.15.jar is the v...
ASM is an all purpose Java bytecode manipulation and analysis framework. It can be used to modify ex...
jlGui is a music player for the Java platform. It is based on Java Sound 1.0 (i.e. JDK 1.3+). It sup...