| com.gargoylesoftware.htmlunit.WebTestCase com.gargoylesoftware.htmlunit.WebResponseDataTest
WebResponseDataTest | public class WebResponseDataTest extends WebTestCase (Code) | | Tests for
WebResponseData .
version: $Revision: 2132 $ author: Daniel Gredler author: Ahmed Ashour |
Method Summary | |
public void | testGZippedContent() Tests that gzipped content is handled correctly. | public void | testNullBody() Verifies that a null body input stream is handled correctly. |
WebResponseDataTest | public WebResponseDataTest(String name)(Code) | | Create an instance.
Parameters: name - The name of the test. |
testGZippedContent | public void testGZippedContent() throws Exception(Code) | | Tests that gzipped content is handled correctly.
throws: Exception - If the test fails. |
testNullBody | public void testNullBody() throws Exception(Code) | | Verifies that a null body input stream is handled correctly. A null body may be sent, for
example, when a 304 (Not Modified) response is sent to the client. See bug 1706505.
throws: Exception - If the test fails. |
Methods inherited from com.gargoylesoftware.htmlunit.WebTestCase | protected void assertEquals(URL expectedUrl, URL actualUrl)(Code)(Java Doc) protected void assertEquals(String message, URL expectedUrl, URL actualUrl)(Code)(Java Doc) protected void assertEquals(String expectedUrl, URL actualUrl)(Code)(Java Doc) protected void assertEquals(String[] expected, List actual)(Code)(Java Doc) protected void assertEquals(String message, String[] expected, List actual)(Code)(Java Doc) protected void assertEquals(String message, String expectedUrl, URL actualUrl)(Code)(Java Doc) public static void assertNull(Object object)(Code)(Java Doc) protected void createTestPageForRealBrowserIfNeeded(String content, String[] expectedAlerts) throws IOException(Code)(Java Doc) protected void createTestPageForRealBrowserIfNeeded(String content, List expectedAlerts) throws IOException(Code)(Java Doc) public static InputStream getFileAsStream(String fileName) throws FileNotFoundException(Code)(Java Doc) public static File getFileObject(String fileName) throws FileNotFoundException(Code)(Java Doc) final protected Log getLog()(Code)(Java Doc) final protected static MockWebConnection getMockConnection(HtmlPage page)(Code)(Java Doc) final protected static HtmlPage loadPage(String html) throws Exception(Code)(Java Doc) final protected static HtmlPage loadPage(BrowserVersion browserVersion, String html, List collectedAlerts) throws Exception(Code)(Java Doc) final protected static HtmlPage loadPage(String html, List collectedAlerts) throws Exception(Code)(Java Doc) final protected static HtmlPage loadPage(String html, List collectedAlerts, URL url) throws Exception(Code)(Java Doc) final protected static HtmlPage loadPage(BrowserVersion browserVersion, String html, List collectedAlerts, URL url) throws Exception(Code)(Java Doc) final protected static HtmlPage loadUrl(String url) throws Exception(Code)(Java Doc) protected boolean notYetImplemented()(Code)(Java Doc) protected void testHTMLFile(String fileName) throws Exception(Code)(Java Doc)
|
|
|