com.gargoylesoftware.htmlunit
Class CacheTest

java.lang.Object
  extended by com.gargoylesoftware.htmlunit.WebTestCase
      extended by com.gargoylesoftware.htmlunit.SimpleWebTestCase
          extended by com.gargoylesoftware.htmlunit.CacheTest

public class CacheTest
extends SimpleWebTestCase

Tests for Cache.

Version:
$Revision: 7931 $
Author:
Marc Guillemot, Ahmed Ashour

Field Summary
 
Fields inherited from class com.gargoylesoftware.htmlunit.WebTestCase
DEFAULT_WAIT_TIME, DEFAULT_WAIT_TIME_FACTOR, FLAG_ALL_BROWSERS, generateTest_browserVersion_, GEOLOCATION_IGNORE, JAVASCRIPT_MIME_TYPE, LINE_SEPARATOR, PORT, PORT2, PORT3, PROPERTY_GENERATE_TESTPAGES, SOCKS_PROXY_HOST, SOCKS_PROXY_PORT, SOCKS_PROXY_SKIP, URL_CROSS_ORIGIN, URL_CROSS_ORIGIN_BASE, URL_CROSS_ORIGIN2, URL_FIRST, URL_SECOND, URL_THIRD
 
Constructor Summary
CacheTest()
           
 
Method Summary
 void cssIsCached()
          TODO: improve CSS caching to cache a COPY of the object as stylesheet objects can be modified dynamically.
 void isDynamicContent()
           
 void maxSizeMaintained()
           
 void usage()
           
 void xhrContentCached()
          Test that content retrieved with XHR is cached when right headers are here.
 
Methods inherited from class com.gargoylesoftware.htmlunit.SimpleWebTestCase
createNewWebClient, getJavaScriptThreads, getMockConnection, getWebClient, getWebClientWithMockWebConnection, loadPage, loadPage, loadPage, loadPage, loadPage, loadPage, loadPage, loadPageWithAlerts, loadPageWithAlerts, loadUrl, readJSThreadsBeforeTest, releaseResources, testHTMLFile
 
Methods inherited from class com.gargoylesoftware.htmlunit.WebTestCase
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertNull, assertTrue, assertTrue, clone, createTestPageForRealBrowserIfNeeded, createTestPageForRealBrowserIfNeeded, expandExpectedAlertsVariables, generateTestForWebDriver, getBrowserVersion, getDefaultUrl, getExpectedAlerts, getFileAsStream, getFileObject, getMockWebConnection, getModifiedContent, loadExpectation, setExpectedAlerts, setGenerateTest_notYetImplemented, setMockWebConnection
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CacheTest

public CacheTest()
Method Detail

isDynamicContent

public void isDynamicContent()
                      throws Exception
Throws:
Exception - if the test fails

usage

public void usage()
           throws Exception
Throws:
Exception - if the test fails

maxSizeMaintained

public void maxSizeMaintained()
                       throws Exception
Throws:
Exception - if the test fails

cssIsCached

public void cssIsCached()
                 throws Exception
TODO: improve CSS caching to cache a COPY of the object as stylesheet objects can be modified dynamically.

Throws:
Exception - if the test fails

xhrContentCached

public void xhrContentCached()
                      throws Exception
Test that content retrieved with XHR is cached when right headers are here.

Throws:
Exception - if the test fails


Copyright © 2002-2013 Gargoyle Software Inc.. All Rights Reserved.