public class EPPRegistryTst
extends junit.framework.TestCase
| Constructor and Description |
|---|
EPPRegistryTst(java.lang.String name)
Allocates an
EPPRegistryTst with a logical name. |
| 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.
|
countTestCases, createResult, getName, run, run, runBare, runTest, setName, toStringassertEquals, 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, failpublic EPPRegistryTst(java.lang.String name)
EPPRegistryTst with a logical name. The constructor
will initialize the base class TestCase with the logical name.name - Logical name of the testpublic void testRegistry()
public void registryCheck(java.util.Map aZoneNames)
EPPRegistry.sendCheck.aZoneNames - Zone names to checkpublic void registryCreate(java.lang.String aZoneName,
boolean aShouldSucceed)
EPPRegistry.sendCreate.aZoneName - Name of zone to createaShouldSucceed - is the test expected to succeed?public void registryDelete(java.lang.String aZoneName,
boolean aShouldSucceed)
EPPRegistry.sendDelete.aZoneName - Name of zone to deleteaShouldSucceed - is the test expected to succeed?public void registryUpdate(java.lang.String aZoneName,
boolean aShouldSucceed)
EPPRegistry.sendUpdate.aZoneName - Name of zone to updateaShouldSucceed - is the test expected to succeed?public void registryInfo(java.lang.String aZoneName,
boolean aAll,
boolean aSystem)
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.aZoneName - Alabel zone name to get the detailed information foraAll - Set to true to get a summary information for all zonesaSystem - Set to true to get the registry system informationpublic java.lang.String makeZoneName()
public void handleException(java.lang.Exception aException)
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.aException - Exception thrown during testpublic static junit.framework.Test suite()
protected void setUp()
setUp in class junit.framework.TestCaseprotected void tearDown()
tearDown, which currently does nothing.tearDown in class junit.framework.TestCasepublic static EPPRegistryZone buildZoneInfo(EPPRegistryZoneName aZone)
EPPRegistryZone instance given a zone
name.aZone - Zone name to create a populated EPPRegistryZone
instance for.EPPRegistryZone instancepublic static EPPRegistryDomain buildDomain()
EPPRegistryDomain instancepublic static EPPRegistryContact buildContact()
EPPRegistryContact instancepublic static EPPRegistryHost buildHost()
EPPRegistryHost instanceCopyright © VeriSign Inc. All Rights Reserved.