Skip to content

royrusso/spring-mvc-rest-mockito

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RESTful Services with SpringMVC (tested with Mockito)

Sample project that covers the following concepts:

  • Spring-MVC
  • REST responses on Spring Controllers
  • Testing for REST endpoints using Mockito

REST Endpoints

We try to follow well-accepted REST principles with these examples. All operations performed on this user entity are through the same endpoint and use the request method as a determiner for the service to call...

If an endpoint is triggered that does not have a mapping, the DefaultController will respond with an error.

Usage

  • Clone the repository
  • To run the tests: mvn clean test
  • If deploying to a servlet container: http://localhost:8080/user will return an initial response.

See org.royrusso.mvc.controller.UserController for more REST endpoints.

About

Sample Spring-MVC, REST, Mockito project

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages