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 Program with JUnit 3.8.1 and Hamcrest 1.3
How to run the JUnit 3.8.1 Example Program with Hamcrest 1.3? I found the example ExampleWithAssertThat.java in the "hamcrest-examples" folder.
✍: FYIcenter.com
Hamcrest is a framework for writing matcher objects allowing 'match' rules to be defined declaratively. The hamcrest-generator-1.3.zip contains a sample examples on how to use Hamcrest with JUnit 3.x and JUnit 4.x.
If you want to run the JUnit 3.8.1 example with Hamcrest 1.3, you can follow these commands:
\fyicenter>cd \local\hamcrest-1.3\hamcrest-examples\src\main\java ...\java>java -version java version "1.7.0_45" ...\java>javac -cp .;..\..\..\..\lib\integration\junit-3.8.1.jar; ..\..\..\..\hamcrest-all-1.3.jar org\hamcrest\examples\junit3\ExampleWithAssertThat.java ...\java>java -cp .;..\..\..\..\lib\integration\junit-3.8.1.jar; ..\..\..\..\hamcrest-all-1.3.jar junit.textui.TestRunner org.hamcrest.examples.junit3.ExampleWithAssertThat . Time: 0.021 OK (1 test)
2016-03-25, 2547🔥, 0💬
Popular Posts:
JDK 11 java.naming.jmod is the JMOD file for JDK 11 Naming module. JDK 11 Naming module compiled cla...
How to download and install javamail-1_2.zip? The JavaMail API is a set of abstract APIs that model ...
Apache Neethi provides general framework for the programmers to use WS Policy. It is compliant with ...
JDK 11 java.security.jgss.jmod is the JMOD file for JDK 11 Security JGSS (Java Generic Security Serv...
XML Serializer, Release 2.7.1, allows you to write out XML, HTML etc. as a stream of characters from...