Skip to content

nilsjorgen/http-patch-mockwebserver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

http-patch-mockwebserver

Testing HTTP PATCH using MockWebServer.

Since the standard JDK HTTP library does not support HTTP PATCH by default, Spring must be able to locate a ClientHttpRequestFactory that does support HTTP PATCH.

Spring autoconfigures it's RestTemplateBuilder, and if either HttpComponentsClientHttpRequestFactory or OkHttp3ClientHttpRequestFactory are found, they will be used, and they do provided the necessary support for HTTP PATCH.

Since MockWebServer has a dependency on OkHttp, the tests runs fine since OkHttp puts the OkHttp3ClientHttpRequestFactory on the test classpath.

Usage

Run ./gradlew clean build in order to execute the test.

About

Testing HTTP PATCH with MockWebServer.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages