public class BaseWebTest
extends com.ziesemer.utils.junit.BaseTest
| Modifier and Type | Field and Description |
|---|---|
protected Set<HttpURLConnection> |
connections |
protected static ZipServletTestSupport |
ZSTS |
| Constructor and Description |
|---|
BaseWebTest() |
| Modifier and Type | Method and Description |
|---|---|
static void |
afterClass() |
void |
emptyAndCloseOpenConnections()
Read everything remaining in streams before closing to eliminate server-side warnings.
|
protected HttpURLConnection |
getTestConnection() |
protected HttpURLConnection |
getTestConnection(String href) |
protected static ZipServletTestSupport ZSTS
protected Set<HttpURLConnection> connections
public void emptyAndCloseOpenConnections()
throws Exception
InterruptedException (logged as a warning) while still trying to write data if the client
closes its connection before reading everything.ZipServletConfigTests is that a
non-thread-safe call to GenericServlet.destroy() is called with the
next call to ZipServletConfigTests.resetServletHandler(),
and then ZipServlet attempts to continue to read
from a closed ZipFile.Exceptionprotected HttpURLConnection getTestConnection() throws Exception
Exceptionprotected HttpURLConnection getTestConnection(String href) throws Exception
ExceptionCopyright © 2008–2017 Mark A. Ziesemer. All rights reserved.