ExchangeActions update

Put assertBodyXyz options behind a common assertBody() entry point
currently including "isEmpty" and "asMap" but in the future others
related to JSON content or XPath for example.

Now that ExchangeActions provides method to access the ExchangeInfo
it has been removed from constructors of assertion classes that
already have ExchangeActions.
This commit is contained in:
Rossen Stoyanchev
2017-02-13 09:24:36 -05:00
parent dff9b3b85c
commit 896e4db411
8 changed files with 117 additions and 62 deletions

View File

@@ -95,7 +95,7 @@ public class ResponseEntityTests {
.exchange(Mono.just(new Person("John")), Person.class)
.assertStatus().isCreated()
.assertHeader("location").isEqualTo("/persons/John").and()
.assertBodyIsEmpty();
.assertBody().isEmpty();
}