Browse Source

renames constant

pull/514/head
Spencer Gibb 6 years ago
parent
commit
86489b6d77
No known key found for this signature in database
GPG Key ID: 7788A47380690861
  1. 4
      spring-cloud-gateway-core/src/test/java/org/springframework/cloud/gateway/test/FormIntegrationTests.java

4
spring-cloud-gateway-core/src/test/java/org/springframework/cloud/gateway/test/FormIntegrationTests.java

@ -50,7 +50,7 @@ import reactor.test.StepVerifier;
@SuppressWarnings("unchecked") @SuppressWarnings("unchecked")
public class FormIntegrationTests extends BaseWebClientTests { public class FormIntegrationTests extends BaseWebClientTests {
public static final MediaType CONTENT_TYPE = new MediaType(MediaType.APPLICATION_FORM_URLENCODED, Charset.forName("UTF-8")); public static final MediaType FORM_URL_ENCODED_CONTENT_TYPE = new MediaType(MediaType.APPLICATION_FORM_URLENCODED, Charset.forName("UTF-8"));
@Test @Test
public void formUrlencodedWorks() { public void formUrlencodedWorks() {
@ -60,7 +60,7 @@ public class FormIntegrationTests extends BaseWebClientTests {
testClient.post() testClient.post()
.uri("/post") .uri("/post")
.contentType(CONTENT_TYPE) .contentType(FORM_URL_ENCODED_CONTENT_TYPE)
.body(BodyInserters.fromFormData(formData)) .body(BodyInserters.fromFormData(formData))
.exchange() .exchange()
.expectStatus().isOk() .expectStatus().isOk()

Loading…
Cancel
Save