Class ChinaVerificationCodeTst
- java.lang.Object
-
- junit.framework.Assert
-
- junit.framework.TestCase
-
- com.verisign.epp.verificationcode.china.ChinaVerificationCodeTst
-
- All Implemented Interfaces:
junit.framework.Test
public class ChinaVerificationCodeTst extends junit.framework.TestCase
Execute and test different china verification end-to-end flows.- See Also:
NSDomain
,EPPNameVerification
-
-
Constructor Summary
Constructors Constructor Description ChinaVerificationCodeTst(java.lang.String name)
Allocates anChinaVerificationCodeTst
with a logical name.
-
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
).java.lang.String
makeClientTransId()
Make unique client transaction identifier.java.lang.String
makeDomainName(java.lang.String aPrefix, java.lang.String aTld)
This method tries to generate a unique String as Domain Name and Name Serverstatic void
printEnd(java.lang.String aTest)
Print the end of a test with theThread
name if the current thread is aTestThread
.static void
printStart(java.lang.String aTest)
Print the start of a test with theThread
name if the current thread is aTestThread
.protected void
setUp()
JUNITsetUp
methodstatic junit.framework.Test
suite()
JUNITsuite
static method, which returns the tests associated withChinaVerificationCodeTst
.protected void
tearDown()
JUNITtearDown
, which currently does nothing.void
testDelayedDomainVerification()
Execute the China Delayed Domain Verification Flow that includes the following steps:
Check availability of domain name in Registry, where the domain must be available Create Real Name Verification Code (RNVC) with VSP using test registrant data.void
testDelayedRealNameVerification()
Execute the China Delayed Real-Name Verification Flow that includes the following steps:
Check availability of domain name in Registry, where the domain must be available Check availability (not restricted or prohibited) of domain label in VSP, where the domain label must be available Create Domain Name Verification Code (DNVC) with VSP using the domain label Create Domain Name in Registry with DNVC After Real-Name Compliance Grace Period, Poll Request to get the Change Poll Message.void
testExpedientRegistration()
Execute the China Expedient Registration Flow that includes the following steps:
Check availability of domain name in Registry, where the domain must be available Create Domain Name in Registry with no codes Check availability (not restricted or prohibited) of domain label in VSP, where the domain label must be available Create Domain Name Verification Code (DNVC) with VSP using the domain label Create Real Name Verification Code (RNVC) with VSP using test registrant data.void
testNormalRegistrationOperations()
Execute the China Normal Registration Operations Flow that includes the following steps:
Check availability of domain name in Registry, where the domain must be available Check availability (not restricted or prohibited) of domain label in VSP, where the domain label must be available Create Domain Name Verification Code (DNVC) with VSP using the domain label Create Domain Name in Registry with DNVC Create Real Name Verification Code (RNVC) with VSP using test registrant data.void
testTransferOfCompliantDomain()
Execute the China Transfer of Compliant Domain Flow that includes the following steps:
Gaining Registrar Info Domain for Verification Compliance Information, which is compliant.void
testTransferOfNonCompliantDomain()
Execute the China Transfer of Non-Compliant Domain Flow that includes the following steps:
Gaining Registrar Info Domain for Verification Compliance Information, which is not compliant (pending compliance in test).void
testUpfrontVerification()
Execute the China Upfront Verification Flow that includes the following steps:
Check availability of domain name in Registry, where the domain must be available Check availability (not restricted or prohibited) of domain label in VSP, where the domain label must be available Create Domain Name Verification Code (DNVC) with VSP using the domain label Create Real Name Verification Code (RNVC) with VSP using test registrant data.-
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
-
testNormalRegistrationOperations
public void testNormalRegistrationOperations()
Execute the China Normal Registration Operations Flow that includes the following steps:
- Check availability of domain name in Registry, where the domain must be available
- Check availability (not restricted or prohibited) of domain label in VSP, where the domain label must be available
- Create Domain Name Verification Code (DNVC) with VSP using the domain label
- Create Domain Name in Registry with DNVC
- Create Real Name Verification Code (RNVC) with VSP using test registrant data.
- Update Domain Name in Registry with RNVC
-
testUpfrontVerification
public void testUpfrontVerification()
Execute the China Upfront Verification Flow that includes the following steps:
- Check availability of domain name in Registry, where the domain must be available
- Check availability (not restricted or prohibited) of domain label in VSP, where the domain label must be available
- Create Domain Name Verification Code (DNVC) with VSP using the domain label
- Create Real Name Verification Code (RNVC) with VSP using test registrant data.
- Create Domain Name in Registry with DNVC and RNVC
-
testExpedientRegistration
public void testExpedientRegistration()
Execute the China Expedient Registration Flow that includes the following steps:
- Check availability of domain name in Registry, where the domain must be available
- Create Domain Name in Registry with no codes
- Check availability (not restricted or prohibited) of domain label in VSP, where the domain label must be available
- Create Domain Name Verification Code (DNVC) with VSP using the domain label
- Create Real Name Verification Code (RNVC) with VSP using test registrant data.
- Update Domain Name in Registry with DNVC and RNVC
-
testDelayedRealNameVerification
public void testDelayedRealNameVerification()
Execute the China Delayed Real-Name Verification Flow that includes the following steps:
- Check availability of domain name in Registry, where the domain must be available
- Check availability (not restricted or prohibited) of domain label in VSP, where the domain label must be available
- Create Domain Name Verification Code (DNVC) with VSP using the domain label
- Create Domain Name in Registry with DNVC
- After Real-Name Compliance Grace Period, Poll Request to get the Change Poll Message.
- Create Real Name Verification Code (RNVC) with VSP using test registrant data.
- Update Domain Name in Registry with RNVC
-
testDelayedDomainVerification
public void testDelayedDomainVerification()
Execute the China Delayed Domain Verification Flow that includes the following steps:
- Check availability of domain name in Registry, where the domain must be available
- Create Real Name Verification Code (RNVC) with VSP using test registrant data.
- Create Domain Name in Registry with RNVC
- Check availability (not restricted or prohibited) of domain label in VSP, where the domain label must be available
- Create Domain Name Verification Code (DNVC) with VSP using the domain label
- Update Domain Name in Registry with DNVC
-
testTransferOfCompliantDomain
public void testTransferOfCompliantDomain()
Execute the China Transfer of Compliant Domain Flow that includes the following steps:
- Gaining Registrar Info Domain for Verification Compliance Information, which is compliant.
- Gaining Registrar Transfer Request with no codes.
- Losing Registrar Approves Transfer
-
testTransferOfNonCompliantDomain
public void testTransferOfNonCompliantDomain()
Execute the China Transfer of Non-Compliant Domain Flow that includes the following steps:
- Gaining Registrar Info Domain for Verification Compliance Information, which is not compliant (pending compliance in test).
- Gaining Registrar Create Real Name Verification Code (RNVC) with VSP using test registrant data.
- Gaining Registrar Transfer Request with RNVC.
- Losing Registrar Approves Transfer
-
setUp
protected void setUp()
JUNITsetUp
method- 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 withChinaVerificationCodeTst
.- Returns:
- Test Suite
-
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
-
printStart
public static void printStart(java.lang.String aTest)
Print the start of a test with theThread
name if the current thread is aTestThread
.- Parameters:
aTest
- name for the test
-
printEnd
public static void printEnd(java.lang.String aTest)
Print the end of a test with theThread
name if the current thread is aTestThread
.- Parameters:
aTest
- name for the test
-
makeDomainName
public java.lang.String makeDomainName(java.lang.String aPrefix, java.lang.String aTld)
This method tries to generate a unique String as Domain Name and Name Server- Parameters:
aPrefix
- Domain name prefix to useaTld
- TLD to use in the domain name- Returns:
- Unique domain name using
aPrefix
andaTld
.
-
makeClientTransId
public java.lang.String makeClientTransId()
Make unique client transaction identifier.- Returns:
- Unique client transaction identifer
-
-