SkillAgentSearch skills...

TestJmockitDemo

Simple example tests using JMockit to do mock testing of an MVC controller and a simple OO-style interaction.

Install / Use

/learn @cwash/TestJmockitDemo
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

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"

  1. Download the distributable for JMockit from:

    https://jmockit.dev.java.net/files/documents/4599/136219/jmockit-0.98.zip

  2. 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

  1. Run the tests

$> mvn test

Contact Chris Wash with questions or feedback: http://cwash.org

View on GitHub
GitHub Stars4
CategoryDevelopment
Updated11y ago
Forks2

Security Score

55/100

Audited on Nov 23, 2014

No findings