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.TestCaseExecute and test different china verification end-to-end flows.- See Also:
NSDomain,EPPNameVerification
-
-
Constructor Summary
Constructors Constructor Description ChinaVerificationCodeTst(java.lang.String name)Allocates anChinaVerificationCodeTstwith a logical name.
-
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).java.lang.StringmakeClientTransId()Make unique client transaction identifier.java.lang.StringmakeDomainName(java.lang.String aPrefix, java.lang.String aTld)This method tries to generate a unique String as Domain Name and Name Serverstatic voidprintEnd(java.lang.String aTest)Print the end of a test with theThreadname if the current thread is aTestThread.static voidprintStart(java.lang.String aTest)Print the start of a test with theThreadname if the current thread is aTestThread.protected voidsetUp()JUNITsetUpmethodstatic junit.framework.Testsuite()JUNITsuitestatic method, which returns the tests associated withChinaVerificationCodeTst.protected voidtearDown()JUNITtearDown, which currently does nothing.voidtestDelayedDomainVerification()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.voidtestDelayedRealNameVerification()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.voidtestExpedientRegistration()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.voidtestNormalRegistrationOperations()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.voidtestTransferOfCompliantDomain()Execute the China Transfer of Compliant Domain Flow that includes the following steps:
Gaining Registrar Info Domain for Verification Compliance Information, which is compliant.voidtestTransferOfNonCompliantDomain()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).voidtestUpfrontVerification()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
countTestCases, createResult, getName, run, run, runBare, runTest, setName, toString
-
Methods inherited from class junit.framework.Assert
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, fail, fail
-
-
-
-
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()
JUNITsetUpmethod- 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 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 theThreadname 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 theThreadname 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
aPrefixandaTld.
-
makeClientTransId
public java.lang.String makeClientTransId()
Make unique client transaction identifier.- Returns:
- Unique client transaction identifer
-
-