com.netriser.xmltestsuite
Class DomainResource

java.lang.Object
  |
  +--junit.framework.Assert
        |
        +--com.netriser.xmltestsuite.TestResource
              |
              +--com.netriser.xmltestsuite.DomainResource
All Implemented Interfaces:
com.meterware.httpunit.DNSListener, TestResourceInterface

public class DomainResource
extends TestResource
implements com.meterware.httpunit.DNSListener

Author:
david Holds a DNS table. Items can be added to this using a "domain" step in an XML test file or by adding 'domain' elements to the browser tag in an XML tetsfile

Method Summary
 java.lang.String getIpAddress(java.lang.String domain)
           
 java.lang.Object put(java.lang.String domain, java.lang.String value)
           
 void setUp()
          Setup the resource before the tests are run
 void tearDown()
          Tidy up the resource after the tests are run
 
Methods inherited from class com.netriser.xmltestsuite.TestResource
debug, getDebugMode, getVerboseMode, setDebug, setVerbose, useTestResult, verbose
 
Methods inherited from class junit.framework.Assert
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

setUp

public void setUp()
Description copied from class: TestResource
Setup the resource before the tests are run

Specified by:
setUp in interface TestResourceInterface
Specified by:
setUp in class TestResource
See Also:
TestResourceInterface.setUp()

tearDown

public void tearDown()
Description copied from class: TestResource
Tidy up the resource after the tests are run

Specified by:
tearDown in interface TestResourceInterface
Specified by:
tearDown in class TestResource
See Also:
TestResourceInterface.tearDown()

put

public java.lang.Object put(java.lang.String domain,
                            java.lang.String value)

getIpAddress

public java.lang.String getIpAddress(java.lang.String domain)
Specified by:
getIpAddress in interface com.meterware.httpunit.DNSListener