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.
Update a zone.
Check the availability (existence) of the zones.
Get all summary information for the zones.
Get detailed zone information for some zones.
Get registry system information.
Delete a set of zones.
|
countTestCases, createResult, getName, run, run, runBare, runTest, setName, toString
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
public 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
.aZoneNames
- Names of the zones to checkpublic void registryCreate(java.lang.String aZoneName, boolean aShouldSucceed)
EPPRegistry.sendCreate
.aZoneName
- Zone to createaShouldSucceed
- true
if the zone create should succeed; false
otherwise.public void registryDelete(java.lang.String aZoneName, boolean aShouldSucceed)
EPPRegistry.sendDelete
.aZoneName
- Zone to deleteaShouldSucceed
- true
if the zone delete should succeed; false
otherwise.public void registryUpdate(java.lang.String aZoneName, boolean aShouldSucceed)
EPPRegistry.sendUpdate
.aZoneName
- Zone to updateaShouldSucceed
- true
if the zone update should succeed; false
otherwise.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.TestCase
protected void tearDown()
tearDown
, which currently does nothing.tearDown
in class junit.framework.TestCase
public 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.