public class ZipServletTestSupport extends ServletTester
Requires that "yui_2.9.0.zip" is downloaded from http://yui.github.io/yui2/
and placed underneath TestWebContent/WEB-INF/.
| Modifier and Type | Field and Description |
|---|---|
static String |
PREFIX |
static String |
TEST_COMBO_PATH |
static String |
TEST_SINGLE_PATH |
static String |
WEB_CONTENT |
protected static File |
ZIP_FILE_FILE |
protected ZipFile |
zipFile |
baseUrl, connector, handler, rfc1123DateFormat, server| Constructor and Description |
|---|
ZipServletTestSupport() |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
ZipFile |
getZipFile() |
File |
getZipFileFile() |
protected org.eclipse.jetty.servlet.ServletContextHandler |
initHandler() |
protected org.eclipse.jetty.servlet.ServletContextHandler |
initHandlerClass() |
void |
testEndOfStream(InputStream is) |
void |
testStreamsEqual(ZipEntry ze,
InputStream is)
Does not close or check for EOF on the InputStream.
|
getBaseUrl, getConnector, getDateFormat, getHandler, getServerpublic static final String WEB_CONTENT
public static final String PREFIX
public static final String TEST_SINGLE_PATH
public static final String TEST_COMBO_PATH
protected static final File ZIP_FILE_FILE
protected final ZipFile zipFile
protected org.eclipse.jetty.servlet.ServletContextHandler initHandler()
initHandler in class ServletTesterprotected org.eclipse.jetty.servlet.ServletContextHandler initHandlerClass()
public ZipFile getZipFile()
public File getZipFileFile()
public void testStreamsEqual(ZipEntry ze, InputStream is) throws Exception
testEndOfStream(InputStream).Exceptionpublic void testEndOfStream(InputStream is) throws Exception
Exceptionpublic void close()
throws Exception
close in class ServletTesterExceptionCopyright © 2008–2017 Mark A. Ziesemer. All rights reserved.