Reorder tests

This commit is contained in:
Sam Brannen
2026-09-03 13:19:21 +02:00
parent 7cdb326623
commit 4a92dd6ed1
@@ -103,6 +103,12 @@ class MockMvcResultMatchersTests {
.doesNotThrowAnyException();
}
@Test
void forwardWithQueryString() {
assertThatCode(() -> forwardedUrl("/api/resource/1?arg=value").match(forwardedUrlStub("/api/resource/1?arg=value")))
.doesNotThrowAnyException();
}
@Test // gh-22155
void forwardWithNullAssertsNoForwardingOccurred() {
assertThatCode(() -> forwardedUrl(null).match(noRedirectOrForwardStub()))
@@ -130,12 +136,6 @@ class MockMvcResultMatchersTests {
.withMessageEndingWith("expected:<null> but was:</resource/1>");
}
@Test
void forwardWithQueryString() {
assertThatCode(() -> forwardedUrl("/api/resource/1?arg=value").match(forwardedUrlStub("/api/resource/1?arg=value")))
.doesNotThrowAnyException();
}
@Test
void forwardWithUrlTemplate() {
assertThatCode(() -> forwardedUrlTemplate("/orders/{orderId}/items/{itemId}", 1, 2).match(forwardedUrlStub("/orders/1/items/2")))