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, 3077🔥, 0💬
Popular Posts:
JDK 11 jdk.localedata.jmod is the JMOD file for JDK 11 Localedata module. JDK 11 Locale Data module ...
Smack is an Open Source XMPP (Jabber) client library for instant messaging and presence. A pure Java...
Smack is an Open Source XMPP (Jabber) client library for instant messaging and presence. A pure Java...
What Is mail.jar of JavaMail 1.3? I got the JAR file from javamail-1_3.zip. mail.jar in javamail-1_3...
JasperReports, the world's most popular open source business intelligence and reporting engine and J...