TestJmockitDemo
Simple example tests using JMockit to do mock testing of an MVC controller and a simple OO-style interaction.
Install / Use
/learn @cwash/TestJmockitDemoREADME
You should be able to set this project up using Maven2.
My current stack:
$> mvn -v Maven version: 2.0.9 Java version: 1.6.0_07 OS name: "mac os x" version: "10.5.7" arch: "x86_64" Family: "mac"
-
Download the distributable for JMockit from:
https://jmockit.dev.java.net/files/documents/4599/136219/jmockit-0.98.zip
-
Install it into your local repo by hand:
$> mvn install:install-file -Dfile=<path/to/downloaded/jmockit.jar> -DgroupId=jmockit -DartifactId=jmockit -Dversion=0.98 -Dpackaging=jar
- Run the tests
$> mvn test
Contact Chris Wash with questions or feedback: http://cwash.org
View on GitHub55/100
Security Score
Audited on Nov 23, 2014
No findings
