mirror of
https://github.com/spring-projects/spring-framework.git
synced 2026-09-17 16:39:29 +00:00
Reorder tests
This commit is contained in:
+6
-6
@@ -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")))
|
||||
|
||||
Reference in New Issue
Block a user