Polish: assertion arguments should be passed in the correct order

This commit is contained in:
igor-suhorukov
2018-03-02 23:56:42 +03:00
committed by Juergen Hoeller
parent 38ebb6c982
commit 06fef1e5a4
2 changed files with 2 additions and 2 deletions

View File

@@ -76,7 +76,7 @@ public class HiddenHttpMethodFilterTests {
StepVerifier.create(postForm("_method=INVALID"))
.consumeErrorWith(error -> {
assertThat(error, Matchers.instanceOf(IllegalArgumentException.class));
assertEquals(error.getMessage(), "HttpMethod 'INVALID' not supported");
assertEquals("HttpMethod 'INVALID' not supported", error.getMessage());
})
.verify();
}