Class RZHostTst

java.lang.Object
junit.framework.Assert
junit.framework.TestCase
com.verisign.epp.rootzone.interfaces.RZHostTst
All Implemented Interfaces:
junit.framework.Test

public class RZHostTst extends junit.framework.TestCase
Test of the use of the RZHost interface. This test utilizes the EPP session pool and exercises all of the operations defined in RZHost and the base class EPPHost.
See Also:
  • Constructor Summary

    Constructors
    Constructor
    Description
    Allocates an NSDomainTst with a logical name.
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    main(String[] args)
    Unit test main, which accepts the following system property options:
    iterations Number of unit test iterations to run validate Turn XML validation on (true) or off ( false).
    Makes a unique contact name using the current time.
    This method tries to generate a unique String as Domain Name and Name Server
    makeHostName(String newDomainName)
    Makes a unique host name for a domain using the current time.
    Makes a unique IP address based off of the current time.
    static void
    Print the end of a test with the Thread name if the current thread is a TestThread.
    static void
    Print the start of a test with the Thread name if the current thread is a TestThread.
    protected void
    JUNIT setUp method
    static junit.framework.Test
    JUNIT suite static method, which returns the tests associated with NSDomainTst.
    protected void
    JUNIT tearDown, which currently does nothing.
    void
    Unit test of RZHost.sendUpdate with change request extension command.

    Methods inherited from class junit.framework.TestCase

    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, countTestCases, createResult, fail, fail, failNotEquals, failNotSame, failSame, format, getName, run, run, runBare, runTest, setName, toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • RZHostTst

      public RZHostTst(String name)
      Allocates an NSDomainTst with a logical name. The constructor will initialize the base class TestCase with the logical name.
      Parameters:
      name - Logical name of the test
  • Method Details

    • testHostUpdate

      public void testHostUpdate()
      Unit test of RZHost.sendUpdate with change request extension command.
    • setUp

      protected void setUp()
      JUNIT setUp method
      Overrides:
      setUp in class junit.framework.TestCase
    • tearDown

      protected void tearDown()
      JUNIT tearDown, which currently does nothing.
      Overrides:
      tearDown in class junit.framework.TestCase
    • suite

      public static junit.framework.Test suite()
      JUNIT suite static method, which returns the tests associated with NSDomainTst.
      Returns:
      DOCUMENT ME!
    • main

      public static void main(String[] args)
      Unit test main, which accepts the following system property options:
      • iterations Number of unit test iterations to run
      • validate Turn XML validation on (true) or off ( false). If validate is not specified, validation will be off.
      Parameters:
      args - DOCUMENT ME!
    • printStart

      public static void printStart(String aTest)
      Print the start of a test with the Thread name if the current thread is a TestThread.
      Parameters:
      aTest - name for the test
    • printEnd

      public static void printEnd(String aTest)
      Print the end of a test with the Thread name if the current thread is a TestThread.
      Parameters:
      aTest - name for the test
    • makeDomainName

      public String makeDomainName()
      This method tries to generate a unique String as Domain Name and Name Server
      Returns:
      Unique domain name
    • makeIP

      public String makeIP()
      Makes a unique IP address based off of the current time.
      Returns:
      Unique IP address String
    • makeHostName

      public String makeHostName(String newDomainName)
      Makes a unique host name for a domain using the current time.
      Parameters:
      newDomainName - DOCUMENT ME!
      Returns:
      Unique host name String
    • makeContactName

      public String makeContactName()
      Makes a unique contact name using the current time.
      Returns:
      Unique contact name String