Skip to content

Commit 4e96c82

Browse files
committed
use after close() is no longer supported
1 parent 03877bb commit 4e96c82

1 file changed

Lines changed: 0 additions & 18 deletions

File tree

src/test/java/org/htmlunit/WebClient5Test.java

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -72,22 +72,4 @@ public Page getPage(final URL url) throws IOException, FailingHttpStatusCodeExce
7272
assertEquals(URL_FIRST, calledUrls[0]);
7373
}
7474
}
75-
76-
/**
77-
* @throws Exception if the test fails
78-
*/
79-
@Test
80-
public void useAfterCloseShouldNotCreateThreads() throws Exception {
81-
final MockWebConnection connection = getMockWebConnection();
82-
connection.setDefaultResponse("hello");
83-
84-
@SuppressWarnings("resource")
85-
final WebClient webClient = new WebClient();
86-
webClient.close();
87-
88-
// webClient.close() also removes the webConnection
89-
webClient.setWebConnection(connection);
90-
webClient.getPage(URL_FIRST);
91-
assertTrue(getJavaScriptThreads().isEmpty());
92-
}
9375
}

0 commit comments

Comments
 (0)