Skip to content
Find file History
Latest commit 93ea56b Apr 24, 2014 @pkainulainen remove unused code
..
Failed to load latest commit information.
profiles First commit Jun 27, 2013
src remove unused code Apr 24, 2014
LICENSE First commit Jun 27, 2013
README Added blog post url Jul 7, 2013
pom.xml Removed Cobertura Maven plugin because it does not work with Java 7 Jun 28, 2013

README

This is an example application of my blog entries that describe the unit testing of "normal" Spring MVC controllers. These blog entries are:

Unit Testing of Spring MVC Controllers: Configuration
http://www.petrikainulainen.net/programming/spring-framework/unit-testing-of-spring-mvc-controllers-configuration/

Unit Testing of Spring MVC Controllers: "Normal" Controllers
http://www.petrikainulainen.net/programming/spring-framework/unit-testing-of-spring-mvc-controllers-normal-controllers/

RUNNING THE APPLICATION:

- Download and install JDK 7 (http://www.oracle.com/technetwork/java/javase/downloads/index.html). If you already have installed JDK 7, you can skip this step.
- Download and install Maven 3 (http://maven.apache.org/download.html#Installation). If you have already installed Maven 3, you can skip this step.
- Go the root directory of project (The one which contains the pom.xml file)
- Run command mvn clean jetty:run
- Start your browser and go to the location: http://localhost:8080

RUNNING TESTS:

- You can run unit tests by using this command: mvn test -P dev
- You can run integration tests by using this command: mvn verify -P integration-test

Something went wrong with that request. Please try again.