Delete unused code
This commit is contained in:
@@ -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)));
|
||||
}
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user