public class EPPLaunchPolicyRegistryTst
extends junit.framework.TestCase
| Constructor and Description |
|---|
EPPLaunchPolicyRegistryTst(java.lang.String name)
Allocates an
EPPLaunchPolicyRegistryTst with a logical name. |
| Modifier and Type | Method and Description |
|---|---|
static EPPLaunchPolicyZone |
buildLaunchPolicyZone()
Build a populated
EPPLaunchPolicyZone instance that can be
included in one of the Launch Policy Extensions. |
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() |
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 EPPLaunchPolicyRegistryTst(java.lang.String name)
EPPLaunchPolicyRegistryTst 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.public void registryCreate(java.lang.String aZoneName,
boolean aShouldSucceed)
EPPRegistry.sendCreate.public void registryDelete(java.lang.String aZoneName,
boolean aShouldSucceed)
EPPRegistry.sendDelete.public void registryUpdate(java.lang.String aZoneName,
boolean aShouldSucceed)
EPPRegistry.sendUpdate.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 EPPLaunchPolicyZone buildLaunchPolicyZone()
EPPLaunchPolicyZone instance that can be
included in one of the Launch Policy Extensions. The populated attributes
are based on the sample included in draft-gould-regext-launch-policy. The
following phases are added to the populated EPPLaunchPolicyZone
instance:EPPLaunchPolicyZone based on the sample included
in draft-gould-regext-launch-policy.Copyright © VeriSign Inc. All Rights Reserved.