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, 3270🔥, 0💬
Popular Posts:
JRE 8 deploy.jar is the JAR file for JRE 8 Java Control Panel and other deploy tools. JRE (Java Runt...
JDK 11 java.sql.rowset.jmod is the JMOD file for JDK 11 SQL Rowset module. JDK 11 SQL Rowset module ...
JDK 11 jdk.jshell.jmod is the JMOD file for JDK 11 JShell tool, which can be invoked by the "jshell"...
How to merge two JAR files with "jar" commands? I am tired of specifying multiple JAR files in the c...
What Is poi-ooxml-5.2.3.jar? poi-ooxml-5.2.3.jar is one of the JAR files for Apache POI 5.2.3, which...