com.verisign.epp.interfaces.registry.v01

## Class EPPRegistryTst

- java.lang.Object
- - junit.framework.Assert
  - - junit.framework.TestCase
    - - com.verisign.epp.interfaces.registry.v01.EPPRegistryTst

- All Implemented Interfaces:
    junit.framework.Test

      public class EPPRegistryTst
      extends junit.framework.TestCase

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `EPPRegistryTst(java.lang.String name)` Allocates an `EPPRegistryTst` with a logical name.

  - ### Method Summary

    All Methods Static Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `static EPPRegistryContact` | `buildContact()` Build a populated contact object policy object to include in a zone.
    `static EPPRegistryDomain` | `buildDomain()` Build a populated domain object policy object to include in a zone.
    `static EPPRegistryHost` | `buildHost()` Build a populated host object policy object to include in a zone.
    `static EPPRegistryZone` | `buildZoneInfo(EPPRegistryZoneName aZone)` Creates a populated `EPPRegistryZone` instance given a zone name.
    `void` | `handleException(java.lang.Exception aException)` Handle an `EPPCommandException`, which can be either a server generated error or a general exception.
    `java.lang.String` | `makeZoneName()` Make a pseudo random zone name.
    `void` | `registryCheck(java.util.Map aZoneNames)` Unit test of `EPPRegistry.sendCheck`.
    `void` | `registryCreate(java.lang.String aZoneName, boolean aShouldSucceed)` Unit test of `EPPRegistry.sendCreate`.
    `void` | `registryDelete(java.lang.String aZoneName, boolean aShouldSucceed)` Unit test of `EPPRegistry.sendDelete`.
    `void` | `registryInfo(java.lang.String aZoneName, boolean aAll, boolean aSystem)` Test for the registry info command that supports the three forms of getting detailed information for an individual zone by setting the `aZoneName` parameter to a non-`null` value, getting a summary of all zones by setting the `aAll` parameter to true, and getting the system information by setting the `aSystem` parameter to true.
    `void` | `registryUpdate(java.lang.String aZoneName, boolean aShouldSucceed)` Unit test of `EPPRegistry.sendUpdate`.
    `protected void` | `setUp()` Setup the test by establishing an EPP session with the server.
    `static junit.framework.Test` | `suite()`
    `protected void` | `tearDown()` JUNIT `tearDown`, which currently does nothing.
    `void` | `testRegistry()` Test the Registry Mapping by doing the following: Create a set of zones.

    - ### Methods inherited from class junit.framework.TestCase

      `countTestCases, createResult, getName, run, run, runBare, runTest, setName, toString`

    - ### 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

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- - ### Constructor Detail

    - #### EPPRegistryTst

          public EPPRegistryTst(java.lang.String name)

      Allocates an `EPPRegistryTst` with a logical name. The constructor will initialize the base class `TestCase` with the logical name.
      Parameters:
        `name` - Logical name of the test

  - ### Method Detail

    - #### testRegistry

          public void testRegistry()

      Test the Registry Mapping by doing the following:
      1. Create a set of zones.
      2. Update a zone.
      3. Check the availability (existence) of the zones.
      4. Get all summary information for the zones.
      5. Get detailed zone information for some zones.
      6. Get registry system information.
      7. Delete a set of zones.

    - #### registryCheck

          public void registryCheck(java.util.Map aZoneNames)

      Unit test of `EPPRegistry.sendCheck`.
      Parameters:
        `aZoneNames` - Zone names to check

    - #### registryCreate

          public void registryCreate(java.lang.String aZoneName,
                                     boolean aShouldSucceed)

      Unit test of `EPPRegistry.sendCreate`.
      Parameters:
        `aZoneName` - Name of zone to create
        `aShouldSucceed` - is the test expected to succeed?

    - #### registryDelete

          public void registryDelete(java.lang.String aZoneName,
                                     boolean aShouldSucceed)

      Unit test of `EPPRegistry.sendDelete`.
      Parameters:
        `aZoneName` - Name of zone to delete
        `aShouldSucceed` - is the test expected to succeed?

    - #### registryUpdate

          public void registryUpdate(java.lang.String aZoneName,
                                     boolean aShouldSucceed)

      Unit test of `EPPRegistry.sendUpdate`.
      Parameters:
        `aZoneName` - Name of zone to update
        `aShouldSucceed` - is the test expected to succeed?

    - #### registryInfo

          public void registryInfo(java.lang.String aZoneName,
                                   boolean aAll,
                                   boolean aSystem)

      Test for the registry info command that supports the three forms of getting detailed information for an individual zone by setting the `aZoneName` parameter to a non-`null` value, getting a summary of all zones by setting the `aAll` parameter to true, and getting the system information by setting the `aSystem` parameter to true. There can be only one form used as a time.
      Parameters:
        `aZoneName` - Alabel zone name to get the detailed information for
        `aAll` - Set to `true` to get a summary information for all zones
        `aSystem` - Set to `true` to get the registry system information

    - #### makeZoneName

          public java.lang.String makeZoneName()

      Make a pseudo random zone name.
      Returns:
        pseudo random zone name

    - #### handleException

          public void handleException(java.lang.Exception aException)

      Handle an `EPPCommandException`, which can be either a server generated error or a general exception. If the exception was caused by a server error, "Server Error :<Response XML>" will be specified. If the exception was caused by a general algorithm error, "General Error :<Exception Description>" will be specified.
      Parameters:
        `aException` - Exception thrown during test

    - #### suite

          public static junit.framework.Test suite()

    - #### setUp

          protected void setUp()

      Setup the test by establishing an EPP session with the server.
      Overrides:
        `setUp` in class `junit.framework.TestCase`

    - #### tearDown

          protected void tearDown()

      JUNIT `tearDown`, which currently does nothing.
      Overrides:
        `tearDown` in class `junit.framework.TestCase`

    - #### buildZoneInfo

          public static EPPRegistryZone buildZoneInfo(EPPRegistryZoneName aZone)

      Creates a populated `EPPRegistryZone` instance given a zone name.
      Parameters:
        `aZone` - Zone name to create a populated `EPPRegistryZone` instance for.
      Returns:
        Populated `EPPRegistryZone` instance

    - #### buildDomain

          public static EPPRegistryDomain buildDomain()

      Build a populated domain object policy object to include in a zone.
      Returns:
        A populated `EPPRegistryDomain` instance

    - #### buildContact

          public static EPPRegistryContact buildContact()

      Build a populated contact object policy object to include in a zone.
      Returns:
        A populated `EPPRegistryContact` instance

    - #### buildHost

          public static EPPRegistryHost buildHost()

      Build a populated host object policy object to include in a zone.
      Returns:
        A populated `EPPRegistryHost` instance

Copyright © VeriSign Inc. All Rights Reserved.