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, 2997🔥, 0💬
Popular Posts:
Apache BCEL Source Code Files are inside the Apache BCEL source package file like bcel-6.6.1-src.zip...
What is the sax\Counter.java provided in the Apache Xerces package? I have Apache Xerces 2.11.0 inst...
How to download and install JDK (Java Development Kit) 1.4? If you want to write Java applications, ...
Jaxen, Release 1.1.1, is an open source XPath library written in Java. It is adaptable to many diffe...
JDK 11 java.xml.jmod is the JMOD file for JDK 11 XML (eXtensible Markup Language) module. JDK 11 XML...