Add rest-test-client module: RestTestClient across all four binding modes, TestRestTemplate relocation, gzip-hiding HTTP client surprise (post #44)

This commit is contained in:
Claude
2026-10-08 09:40:13 +00:00
parent 5851521420
commit 5e4d481c02
22 changed files with 795 additions and 5 deletions
@@ -0,0 +1,9 @@
$ mvn test -Dtest=PersonEndToEndTest
[INFO] Running com.ankurm.resttestclient.PersonEndToEndTest
[INFO] Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 6.971 s -- in com.ankurm.resttestclient.PersonEndToEndTest
[INFO] Tests run: 2, Failures: 0, Errors: 0, Skipped: 0
# theResponseIsCompressedOnTheWireButTheClientHidesIt asserts Content-Encoding is ABSENT from the
# response RestTestClient.bindToServer() sees, against the same /api/persons endpoint
# 05-curl-sees-real-gzip.txt just proved really does send Content-Encoding: gzip. It passes: the
# default client hides it.