You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Replace deprecated `org.junit.Assert#assertThat` references with
`org.hamcrest.MatcherAssert#assertThat` in test matcher documentation.
This change updates documentation in `HeaderMatcher` and `PayloadMatcher`
classes to reference the correct `assertThat` method location after
JUnit Jupiter migration removed `Assert.assertThat` in favor of the
Hamcrest implementation.
* Add AssertJ integration example to `PayloadMatcher` Javadoc
Extends the existing Javadoc for `PayloadMatcher` to include examples
of how to use the matcher with AssertJ's `HamcrestCondition`.
Copy file name to clipboardExpand all lines: spring-integration-test-support/src/main/java/org/springframework/integration/test/matcher/HeaderMatcher.java
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -31,7 +31,7 @@
31
31
* Are the {@link MessageHeaders} of a {@link Message} containing any entry
32
32
* or multiple that match?
33
33
* <p>
34
-
* For example using {@link org.junit.Assert#assertThat(Object, Matcher)} for a single
34
+
* For example using {@link org.hamcrest.MatcherAssert#assertThat(Object, Matcher)} for a single
Copy file name to clipboardExpand all lines: spring-integration-test-support/src/main/java/org/springframework/integration/test/matcher/PayloadMatcher.java
+16-2Lines changed: 16 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -27,7 +27,7 @@
27
27
* Is the payload of a {@link Message} equal to a given value or is matching
28
28
* a given matcher?
29
29
* <p>
30
-
* A Junit example using {@link org.junit.Assert#assertThat(Object, Matcher)} could look
30
+
* A Junit example using {@link org.hamcrest.MatcherAssert#assertThat(Object, Matcher)} could look
31
31
* like this to test a payload value:
32
32
*
33
33
* <pre class="code">
@@ -39,7 +39,7 @@
39
39
* </pre>
40
40
*
41
41
* <p>
42
-
* An example using {@link org.junit.Assert#assertThat(Object, Matcher)} delegating to
42
+
* An example using {@link org.hamcrest.MatcherAssert#assertThat(Object, Matcher)} delegating to
43
43
* another {@link Matcher}.
44
44
*
45
45
* <pre class="code">
@@ -52,6 +52,20 @@
52
52
* }
53
53
* </pre>
54
54
*
55
+
* <p>
56
+
* When using AssertJ, the {@link org.assertj.core.api.HamcrestCondition} can be used to combine the AssertJ API
0 commit comments