diff --git a/spring-test/src/test/java/org/springframework/test/web/servlet/htmlunit/MockMvcWebClientBuilderTests.java b/spring-test/src/test/java/org/springframework/test/web/servlet/htmlunit/MockMvcWebClientBuilderTests.java index bfdf86a2098..ea425f63b41 100644 --- a/spring-test/src/test/java/org/springframework/test/web/servlet/htmlunit/MockMvcWebClientBuilderTests.java +++ b/spring-test/src/test/java/org/springframework/test/web/servlet/htmlunit/MockMvcWebClientBuilderTests.java @@ -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 { 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))); } diff --git a/spring-test/src/test/java/org/springframework/test/web/servlet/htmlunit/webdriver/MockMvcHtmlUnitDriverBuilderTests.java b/spring-test/src/test/java/org/springframework/test/web/servlet/htmlunit/webdriver/MockMvcHtmlUnitDriverBuilderTests.java index 904a0f8dead..ee85328fc55 100644 --- a/spring-test/src/test/java/org/springframework/test/web/servlet/htmlunit/webdriver/MockMvcHtmlUnitDriverBuilderTests.java +++ b/spring-test/src/test/java/org/springframework/test/web/servlet/htmlunit/webdriver/MockMvcHtmlUnitDriverBuilderTests.java @@ -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 { 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();