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.TestCase
Is 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 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
method, which sets the default client Id to "theRegistrar" and initializes theEPPDomainMapFactory
with theEPPCodec
.static junit.framework.Test
suite()
JUNITsuite
static method, which returns the tests associated withEPPSecureAuthInfoTst
.protected void
tearDown()
JUNITtearDown
, which currently does nothing.void
testContactCreate()
Unit test of the example of passing empty authorization information in an [RFC5733] contact create command.void
testContactUpdateUnsetEmpty()
Unit test of the example of unsetting the authorization information with an empty authorization information in an [RFC5733] contact update commandvoid
testDomainCreate()
Unit test of the example of passing empty authorization information in an [RFC5731] domain name create command.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.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.void
testDomainUpdateSet()
Unit test of the example of removing the "clientTransferProhibited" status and setting the authorization information in an [RFC5731] domain name update command.void
testDomainUpdateUnsetEmpty()
Unit test of the example of unsetting the authorization information with an empty authorization information in an [RFC5731] domain name update command.void
testDomainUpdateUnsetNull()
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()
JUNITsetUp
method, which sets the default client Id to "theRegistrar" and initializes theEPPDomainMapFactory
with theEPPCodec
.- Overrides:
setUp
in classjunit.framework.TestCase
-
tearDown
protected void tearDown()
JUNITtearDown
, which currently does nothing.- Overrides:
tearDown
in classjunit.framework.TestCase
-
suite
public static junit.framework.Test suite()
JUNITsuite
static 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
-
-