Class EPPSecureAuthInfoTst
- java.lang.Object
-
- junit.framework.Assert
-
- junit.framework.TestCase
-
- com.verisign.epp.codec.secureauthinfo.v1_0.EPPSecureAuthInfoTst
-
- All Implemented Interfaces:
junit.framework.Test
public class EPPSecureAuthInfoTst extends junit.framework.TestCaseIs a unit test of supporting the Secure Authorization Information for Transfer draft, which includes creating each of the sample commands and responses in the draft.
-
-
Constructor Summary
Constructors Constructor Description EPPSecureAuthInfoTst(java.lang.String name)Creates a new EPPSecureAuthInfoTst object.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static voidmain(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 voidsetNumIterations(long aNumIterations)Sets the number of iterations to run per test.protected voidsetUp()JUNITsetUpmethod, which sets the default client Id to "theRegistrar" and initializes theEPPDomainMapFactorywith theEPPCodec.static junit.framework.Testsuite()JUNITsuitestatic method, which returns the tests associated withEPPSecureAuthInfoTst.protected voidtearDown()JUNITtearDown, which currently does nothing.voidtestContactCreate()Unit test of the example of passing empty authorization information in an [RFC5733] contact create command.voidtestContactUpdateUnsetEmpty()Unit test of the example of unsetting the authorization information with an empty authorization information in an [RFC5733] contact update commandvoidtestDomainCreate()Unit test of the example of passing empty authorization information in an [RFC5731] domain name create command.voidtestDomainInfo()Unit test of the example of passing a non-empty authorization information in an [RFC5731] domain name info command to verify the authorization information value.voidtestDomainTransfer()Unit test of the example of passing a non-empty authorization information in an [RFC5731] domain name transfer request command to authorize the transfer.voidtestDomainUpdateSet()Unit test of the example of removing the "clientTransferProhibited" status and setting the authorization information in an [RFC5731] domain name update command.voidtestDomainUpdateUnsetEmpty()Unit test of the example of unsetting the authorization information with an empty authorization information in an [RFC5731] domain name update command.voidtestDomainUpdateUnsetNull()Unit test of the example of unsetting the authorization information explicitly in an [RFC5731] domain name update command.-
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
-
testDomainCreate
public void testDomainCreate()
Unit test of the example of passing empty authorization information in an [RFC5731] domain name create command.
-
testContactCreate
public void testContactCreate()
Unit test of the example of passing empty authorization information in an [RFC5733] contact create command.
-
testDomainUpdateSet
public void testDomainUpdateSet()
Unit test of the example of removing the "clientTransferProhibited" status and setting the authorization information in an [RFC5731] domain name update command.
-
testDomainUpdateUnsetNull
public void testDomainUpdateUnsetNull()
Unit test of the example of unsetting the authorization information explicitly in an [RFC5731] domain name update command.
-
testDomainUpdateUnsetEmpty
public void testDomainUpdateUnsetEmpty()
Unit test of the example of unsetting the authorization information with an empty authorization information in an [RFC5731] domain name update command.
-
testContactUpdateUnsetEmpty
public void testContactUpdateUnsetEmpty()
Unit test of the example of unsetting the authorization information with an empty authorization information in an [RFC5733] contact update command
-
testDomainInfo
public void testDomainInfo()
Unit test of the example of passing a non-empty authorization information in an [RFC5731] domain name info command to verify the authorization information value.
-
testDomainTransfer
public void testDomainTransfer()
Unit test of the example of passing a non-empty authorization information in an [RFC5731] domain name transfer request command to authorize the transfer.
-
setUp
protected void setUp()
JUNITsetUpmethod, which sets the default client Id to "theRegistrar" and initializes theEPPDomainMapFactorywith theEPPCodec.- Overrides:
setUpin classjunit.framework.TestCase
-
tearDown
protected void tearDown()
JUNITtearDown, which currently does nothing.- Overrides:
tearDownin classjunit.framework.TestCase
-
suite
public static junit.framework.Test suite()
JUNITsuitestatic method, which returns the tests associated withEPPSecureAuthInfoTst.- Returns:
- Tests to execute
-
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- Command line arguments
-
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
-
-