Class NSDomainTst

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

public class NSDomainTst extends junit.framework.TestCase
Test of the use of the NSDomain interface. This test utilizes the EPP session pool and exercises all of the operations defined in NSDomain and the base class EPPDomain.
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 using NSDomain.setAllocationToken(String) with domain check, domain info, domain create, domain update, and domain transfer.
    void
    Unit test processing responses asynchronous from the commands.
    void
    Unit test of EPPDomain.sendCreate for secDNS 1.1 using the DS Data Interface.
    void
    Unit test of EPPDomain.sendCreate for secDNS 1.1 using the Key Data Interface.
    void
    Unit test of NSDomain.sendDomainCheck command.
    void
    Unit test of NSDomain.sendCreate command with COA extension.
    void
    Unit test of NSDomain.sendUpdate command with COA extension.
    void
    Unit test of NSDomain.sendCreate command.
    void
    Unit test of NSDomain.sendDelete command.
    void
    Unit test of NSDomain.sendCreate command with IDN tag extension.
    void
    Unit test of NSDomain.sendDomainInfo command.
    void
    Unit test of NSDomain.sendDomainRenew command.
    void
    Unit test of NSDomain.sendRestoreReport command.
    void
    Unit test of NSDomain.sendRestoreRequest command.
    void
    Unit test of NSDomain.sendSync command.
    void
    Unit test of NSDomain.sendTransfer command.
    void
    Unit test of NSDomain.sendUpdate command.
    void
    Unit test of EPPSession.endSession.
    void
    Unit test using NSDomain.addOrgId(com.verisign.epp.codec.orgext.EPPOrgExtId) to set the org identifier on create and NSDomain.addUpdateOrgId(int, com.verisign.epp.codec.orgext.EPPOrgExtId) to update the org identifier of an existing domain.
    void
    Unit test of NSDomain.sendRelatedCreate.
    void
    Unit test of support secDNS-1.0 with NSDomain for backward compatibility.
    void
    Unit test of EPPDomain.sendUpdate for secDNS 1.1 using the DS Data Interface.
    void
    Unit test of EPPDomain.sendUpdate for secDNS 1.1 using the Key Data Interface.

    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

    • NSDomainTst

      public NSDomainTst(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

    • testDomainCreate

      public void testDomainCreate()
      Unit test of NSDomain.sendCreate command.
    • testRelatedDomainCreate

      public void testRelatedDomainCreate()
      Unit test of NSDomain.sendRelatedCreate.
    • testCreateDsDataInterface

      public void testCreateDsDataInterface()
      Unit test of EPPDomain.sendCreate for secDNS 1.1 using the DS Data Interface. The VeriSign servers only support the DS Data Interface. The following tests will be executed:
      1. Create for a Secure Delegation using the DS Data Interface with one DS.
      2. Create for a Secure Delegation using the DS Data Interface with two DS. One DS created from key data.
    • testUpdateDsDataInterface

      public void testUpdateDsDataInterface()
      Unit test of EPPDomain.sendUpdate for secDNS 1.1 using the DS Data Interface. The VeriSign servers only support the DS Data Interface. The following tests will be executed:
      1. Adding and Removing DS Data using the DS Data Interface.
      2. Remove all DS using <secDNS:rem> with <secDNS:all>.
      3. Replacing all DS Data using the DS Data Interface.
    • testCreateKeyDataInterface

      public void testCreateKeyDataInterface()
      Unit test of EPPDomain.sendCreate for secDNS 1.1 using the Key Data Interface. The VeriSign servers only support the DS Data Interface. The following tests will be executed:
      1. Create for a Secure Delegation using the Key Data Interface with one key.
      2. Create for a Secure Delegation using the Key Data Interface with two keys.
    • testUpdateKeyDataInterface

      public void testUpdateKeyDataInterface()
      Unit test of EPPDomain.sendUpdate for secDNS 1.1 using the Key Data Interface. The VeriSign servers only support the DS Data Interface. The following tests will be executed:
      1. Adding and Removing Key Data using the Key Data Interface.
      2. Remove all keys using <secDNS:rem> with <secDNS:all>.
      3. Replacing all Key Data using the Key Data Interface.
    • testDomainCheck

      public void testDomainCheck()
      Unit test of NSDomain.sendDomainCheck command.
    • testDomainInfo

      public void testDomainInfo()
      Unit test of NSDomain.sendDomainInfo command.
    • testDomainDelete

      public void testDomainDelete()
      Unit test of NSDomain.sendDelete command.
    • testDomainRenew

      public void testDomainRenew()
      Unit test of NSDomain.sendDomainRenew command.
    • testDomainUpdate

      public void testDomainUpdate()
      Unit test of NSDomain.sendUpdate command.
    • testDomainTransfer

      public void testDomainTransfer()
      Unit test of NSDomain.sendTransfer command.
    • testDomainSync

      public void testDomainSync()
      Unit test of NSDomain.sendSync command.
    • testDomainRestoreRequest

      public void testDomainRestoreRequest()
      Unit test of NSDomain.sendRestoreRequest command.
    • testDomainRestoreReport

      public void testDomainRestoreReport()
      Unit test of NSDomain.sendRestoreReport command.
    • testDomainIDNCreate

      public void testDomainIDNCreate()
      Unit test of NSDomain.sendCreate command with IDN tag extension.
    • testAllocationToken

      public void testAllocationToken()
      Unit test using NSDomain.setAllocationToken(String) with domain check, domain info, domain create, domain update, and domain transfer.
    • testOrgId

      public void testOrgId()
      Unit test using NSDomain.addOrgId(com.verisign.epp.codec.orgext.EPPOrgExtId) to set the org identifier on create and NSDomain.addUpdateOrgId(int, com.verisign.epp.codec.orgext.EPPOrgExtId) to update the org identifier of an existing domain.
    • testEndSession

      public void testEndSession()
      Unit test of EPPSession.endSession. One session in the session pool will be ended.
    • testAsyncCommands

      public void testAsyncCommands()
      Unit test processing responses asynchronous from the commands. This is a test of the use of pipelining.
    • testSecDNS10

      public void testSecDNS10()
      Unit test of support secDNS-1.0 with NSDomain for backward compatibility.
    • 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
    • testDomainCoaCreate

      public void testDomainCoaCreate()
      Unit test of NSDomain.sendCreate command with COA extension.
    • testDomainCoaUpdate

      public void testDomainCoaUpdate()
      Unit test of NSDomain.sendUpdate command with COA extension.