Skip to content

Example Spring RestTemplate functional testing with MockRestServiceServer

Notifications You must be signed in to change notification settings

jeffsheets/MockRestServiceServerExample

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

MockRestServiceServerExample

Example Spring RestTemplate functional / unit testing with MockRestServiceServer.

MockRestServiceServer is a mock server and simple framework for testing RestTemplate calls. RestTemplate is a simple Spring class for making REST web service requests.

MockRestServiceServer is now included in Spring 3.2.x and up: http://static.springsource.org/spring/docs/3.2.x/spring-framework-reference/html/testing.html#spring-mvc-test-client

It can be used with Spring 3.1.x by using the spring-test-mvc jar: https://github.com/SpringSource/spring-test-mvc

You can generate Eclipse project files by using the Maven command:

mvn eclipse:eclipse

Then you can import the project into Eclipse and run the tests.

About

Example Spring RestTemplate functional testing with MockRestServiceServer

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages