Skip to content

Latest commit

 

History

History

controllers

Folders and files

NameName
Last commit message
Last commit date

parent directory

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

Integration Testing of Spring MVC Applications: Controllers
http://www.petrikainulainen.net/programming/spring-framework/integration-testing-of-spring-mvc-applications-controllers/

Integration Testing of Spring MVC Applications: Forms
http://www.petrikainulainen.net/programming/spring-framework/integration-testing-of-spring-mvc-applications-forms/

RUNNING THE APPLICATION:

- 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