Browse Source

Delete unused code

pull/25852/head
Sam Brannen 4 years ago
parent
commit
92cc006b2c
  1. 6
      spring-test/src/test/java/org/springframework/test/web/servlet/htmlunit/MockMvcWebClientBuilderTests.java
  2. 6
      spring-test/src/test/java/org/springframework/test/web/servlet/htmlunit/webdriver/MockMvcHtmlUnitDriverBuilderTests.java

6
spring-test/src/test/java/org/springframework/test/web/servlet/htmlunit/MockMvcWebClientBuilderTests.java

@ -1,5 +1,5 @@ @@ -1,5 +1,5 @@
/*
* Copyright 2002-2019 the original author or authors.
* Copyright 2002-2020 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -114,10 +114,6 @@ class MockMvcWebClientBuilderTests { @@ -114,10 +114,6 @@ class MockMvcWebClientBuilderTests {
assertThat(getResponse(client, url).getContentAsString()).isEqualTo("mvc");
}
private void assertMockMvcNotUsed(WebClient client, String url) throws Exception {
assertThat(getResponse(client, url).getContentAsString()).isNotEqualTo("mvc");
}
private WebResponse getResponse(WebClient client, String url) throws IOException {
return createResponse(client, new WebRequest(new URL(url)));
}

6
spring-test/src/test/java/org/springframework/test/web/servlet/htmlunit/webdriver/MockMvcHtmlUnitDriverBuilderTests.java

@ -1,5 +1,5 @@ @@ -1,5 +1,5 @@
/*
* Copyright 2002-2019 the original author or authors.
* Copyright 2002-2020 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -112,10 +112,6 @@ class MockMvcHtmlUnitDriverBuilderTests { @@ -112,10 +112,6 @@ class MockMvcHtmlUnitDriverBuilderTests {
assertThat(get(url)).contains(EXPECTED_BODY);
}
private void assertMockMvcNotUsed(String url) throws Exception {
assertThat(get(url)).doesNotContain(EXPECTED_BODY);
}
private String get(String url) throws IOException {
this.driver.get(url);
return this.driver.getPageSource();

Loading…
Cancel
Save