Skip to content

shreynavadia/Spring-MVC-Mockito

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RESTful Services with SpringMVC (tested with Mockito)

project that covers the following concepts:

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

REST Endpoints

I tried 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

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages