| com.gargoylesoftware.htmlunit.WebTestCase com.gargoylesoftware.htmlunit.html.AttributesTest
AttributesTest | public class AttributesTest extends WebTestCase (Code) | | Tests for all the generated attribute accessors. This test case will
dynamically generate tests for all the various attributes. The code
is fairly complicated but doing it this way is much easier than writing
individual tests for all the attributes.
With the new custom DOM, this test has somewhat lost its significance.
We simply set and get the attributes and compare the results.
version: $Revision: 2132 $ author: Mike Bowler author: Christian Sell author: Marc Guillemot author: Ahmed Ashour |
Method Summary | |
protected void | runTest() Run the actual test. | public static Test | suite() Return a test suite containing a separate test for each attribute
on each element. |
AttributesTest | public AttributesTest(String attributeName, Class classUnderTest, Method method, HtmlPage page)(Code) | | Create an instance of the test. This will test one specific attribute
on one specific class.
Parameters: attributeName - The name of the attribute to test. Parameters: classUnderTest - The class containing the attribute. Parameters: method - The "getter" method for the specified attribute. Parameters: page - The page that will be passed into the constructor of the objectto be tested. |
suite | public static Test suite() throws Exception(Code) | | Return a test suite containing a separate test for each attribute
on each element.
The test suite throws: Exception - If the tests cannot be created. |
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)
|
|
|