Class EPPLoginSecPolicyTst
java.lang.Object
junit.framework.Assert
junit.framework.TestCase
com.verisign.epp.codec.loginsecpolicy.v04.EPPLoginSecPolicyTst
- All Implemented Interfaces:
junit.framework.Test
public class EPPLoginSecPolicyTst
extends junit.framework.TestCase
Test of the packet encoder and decoder (CODEC) for the Login Security Policy
Extension. The Login Security Policy Extension is a command / response
extension of a zone object in the Registry Mapping. The
EPPRegistryTst utility methods are used to supporting creating a full
Registry Mapping command or response that is extended by the Login Security
Policy Extension.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic EPPLoginSecPolicySystemBuild a populatedEPPLoginSecPolicyEventinstance that can be included in one of the Launch Policy Extensions.static voidUnit 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 voidsetNumIterations(long aNumIterations) Sets the number of iterations to run per test.protected voidsetUp()JUNITsetUp, which currently does nothing.static junit.framework.Testsuite()JUNITsuitestatic method, which returns the tests associated withEPPRegistryTst.protected voidtearDown()JUNITtearDown, which currently does nothing.voidTest the registry info response for 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
-
Constructor Details
-
EPPLoginSecPolicyTst
-
-
Method Details
-
testRegistryInfoSystemInfo
public void testRegistryInfoSystemInfo()Test the registry info response for the zone info that includes the Launch Policy Extension. -
main
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()JUNITsuitestatic method, which returns the tests associated withEPPRegistryTst.- Returns:
- Test suite
-
setUp
protected void setUp()JUNITsetUp, which currently does nothing.- Overrides:
setUpin classjunit.framework.TestCase
-
tearDown
protected void tearDown()JUNITtearDown, which currently does nothing.- Overrides:
tearDownin 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
-
buildLoginSecSystem
Build a populatedEPPLoginSecPolicyEventinstance 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 populatedEPPLoginSecPolicyEventinstance:
- Sunrise
- Claims for Limited Registration Period #1 (LRP1)
- Claims for Landrush
- Claims (Open)
- Custom for Limited Registration Period #2 (LRP2)
- Open
- Returns:
- Populated
EPPLoginSecPolicyEventbased on the sample included in draft-gould-regext-launch-policy.
-