Delete unused code

This commit is contained in:
Sam Brannen
2020-10-01 15:14:55 +02:00
parent dfb7ca733a
commit 92cc006b2c
2 changed files with 2 additions and 10 deletions

View File

@@ -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)));
}

View File

@@ -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();