Class EPPLaunchPolicyTst
- java.lang.Object
-
- junit.framework.Assert
-
- junit.framework.TestCase
-
- com.verisign.epp.codec.launchpolicy.v01.EPPLaunchPolicyTst
-
- All Implemented Interfaces:
junit.framework.Test
public class EPPLaunchPolicyTst extends junit.framework.TestCase
Test of the packet encoder and decoder (CODEC) for the Launch Phase Policy Extension. The Launch Phase Policy Extension is a command / response extension of a zone object in the Registry Mapping. TheEPPRegistryTst
utility methods are used to supporting creating a full Registry Mapping command or response that is extended by the Launch Phase Policy Extension.
-
-
Constructor Summary
Constructors Constructor Description EPPLaunchPolicyTst(java.lang.String name)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static EPPLaunchPolicyZone
buildLaunchPolicyZone()
Build a populatedEPPLaunchPolicyZone
instance that can be included in one of the Launch Policy Extensions.static void
main(java.lang.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
).static void
setNumIterations(long aNumIterations)
Sets the number of iterations to run per test.protected void
setUp()
JUNITsetUp
, which currently does nothing.static junit.framework.Test
suite()
JUNITsuite
static method, which returns the tests associated withEPPRegistryTst
.protected void
tearDown()
JUNITtearDown
, which currently does nothing.void
testRegistryCreate()
Test the registry create command with the zone info that includes the Launch Policy Extension.void
testRegistryInfoZoneInfo()
Test the registry info response for the zone info that includes the Launch Policy Extension.void
testRegistryUpdate()
Test the registry update command with the zone info that includes the Launch Policy Extension.-
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
-
-
-
-
Method Detail
-
testRegistryInfoZoneInfo
public void testRegistryInfoZoneInfo()
Test the registry info response for the zone info that includes the Launch Policy Extension.
-
testRegistryCreate
public void testRegistryCreate()
Test the registry create command with the zone info that includes the Launch Policy Extension.
-
testRegistryUpdate
public void testRegistryUpdate()
Test the registry update command with the zone info that includes the Launch Policy Extension.
-
main
public static void main(java.lang.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
- Program arguments
-
suite
public static junit.framework.Test suite()
JUNITsuite
static method, which returns the tests associated withEPPRegistryTst
.- Returns:
- Test suite
-
setUp
protected void setUp()
JUNITsetUp
, which currently does nothing.- Overrides:
setUp
in classjunit.framework.TestCase
-
tearDown
protected void tearDown()
JUNITtearDown
, which currently does nothing.- Overrides:
tearDown
in classjunit.framework.TestCase
-
setNumIterations
public static void setNumIterations(long aNumIterations)
Sets the number of iterations to run per test.- Parameters:
aNumIterations
- number of iterations to run per test
-
buildLaunchPolicyZone
public static EPPLaunchPolicyZone buildLaunchPolicyZone()
Build a populatedEPPLaunchPolicyZone
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 populatedEPPLaunchPolicyZone
instance:
- Sunrise
- Claims for Limited Registration Period #1 (LRP1)
- Claims for Landrush
- Claims (Open)
- Custom for Limited Registration Period #2 (LRP2)
- Open
- Returns:
- Populated
EPPLaunchPolicyZone
based on the sample included in draft-gould-regext-launch-policy.
-
-