Skip to content

nilsjorgen/http-patch-testcontainers

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

http-patch-test

Testing HTTP PATCH using Testcontainers and a custom json-server Docker image.

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.

Usage

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

Remove implementation("com.squareup.okhttp3:okhttp:4.9.3") from the build.gradle.kts to get the test to fail.

About

Testing HTTP PATCH with Testcontainers.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages