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:
  • Constructor Summary

    Constructors
    Constructor
    Description
    Allocates an ChinaVerificationCodeTst with a logical name.
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    main(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).
    Make unique client transaction identifier.
    makeDomainName(String aPrefix, String aTld)
    This method tries to generate a unique String as Domain Name and Name Server
    static void
    Print the end of a test with the Thread name if the current thread is a TestThread.
    static void
    Print the start of a test with the Thread name if the current thread is a TestThread.
    protected void
    JUNIT setUp method
    static junit.framework.Test
    JUNIT suite static method, which returns the tests associated with ChinaVerificationCodeTst.
    protected void
    JUNIT tearDown, which currently does nothing.
    void
    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
    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
    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
    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
    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
    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
    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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • ChinaVerificationCodeTst

      public ChinaVerificationCodeTst(String name)
      Allocates an ChinaVerificationCodeTst with a logical name. The constructor will initialize the base class TestCase with the logical name.
      Parameters:
      name - Logical name of the test
  • Method Details

    • testNormalRegistrationOperations

      public void testNormalRegistrationOperations()
      Execute the China Normal Registration Operations Flow that includes the following steps:
      1. Check availability of domain name in Registry, where the domain must be available
      2. Check availability (not restricted or prohibited) of domain label in VSP, where the domain label must be available
      3. Create Domain Name Verification Code (DNVC) with VSP using the domain label
      4. Create Domain Name in Registry with DNVC
      5. Create Real Name Verification Code (RNVC) with VSP using test registrant data.
      6. Update Domain Name in Registry with RNVC
    • testUpfrontVerification

      public void testUpfrontVerification()
      Execute the China Upfront Verification Flow that includes the following steps:
      1. Check availability of domain name in Registry, where the domain must be available
      2. Check availability (not restricted or prohibited) of domain label in VSP, where the domain label must be available
      3. Create Domain Name Verification Code (DNVC) with VSP using the domain label
      4. Create Real Name Verification Code (RNVC) with VSP using test registrant data.
      5. Create Domain Name in Registry with DNVC and RNVC
    • testExpedientRegistration

      public void testExpedientRegistration()
      Execute the China Expedient Registration Flow that includes the following steps:
      1. Check availability of domain name in Registry, where the domain must be available
      2. Create Domain Name in Registry with no codes
      3. Check availability (not restricted or prohibited) of domain label in VSP, where the domain label must be available
      4. Create Domain Name Verification Code (DNVC) with VSP using the domain label
      5. Create Real Name Verification Code (RNVC) with VSP using test registrant data.
      6. 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:
      1. Check availability of domain name in Registry, where the domain must be available
      2. Check availability (not restricted or prohibited) of domain label in VSP, where the domain label must be available
      3. Create Domain Name Verification Code (DNVC) with VSP using the domain label
      4. Create Domain Name in Registry with DNVC
      5. After Real-Name Compliance Grace Period, Poll Request to get the Change Poll Message.
      6. Create Real Name Verification Code (RNVC) with VSP using test registrant data.
      7. Update Domain Name in Registry with RNVC
      Steps 1-4 are handled in a separate execution of testNormalRegistrationOperations, that will register the domain name with the DNVC. Steps 5 - 7 are executed after the Real-Name Compliance Grace Period (e.g. 5 days) that will process the Change Poll Message, do the Real Name Verification, and pass the Real Name Verification Code (RNVC) in a domain update.
    • testDelayedDomainVerification

      public void testDelayedDomainVerification()
      Execute the China Delayed Domain Verification Flow that includes the following steps:
      1. Check availability of domain name in Registry, where the domain must be available
      2. Create Real Name Verification Code (RNVC) with VSP using test registrant data.
      3. Create Domain Name in Registry with RNVC
      4. Check availability (not restricted or prohibited) of domain label in VSP, where the domain label must be available
      5. Create Domain Name Verification Code (DNVC) with VSP using the domain label
      6. Update Domain Name in Registry with DNVC
    • testTransferOfCompliantDomain

      public void testTransferOfCompliantDomain()
      Execute the China Transfer of Compliant Domain Flow that includes the following steps:
      1. Gaining Registrar Info Domain for Verification Compliance Information, which is compliant.
      2. Gaining Registrar Transfer Request with no codes.
      3. Losing Registrar Approves Transfer
    • testTransferOfNonCompliantDomain

      public void testTransferOfNonCompliantDomain()
      Execute the China Transfer of Non-Compliant Domain Flow that includes the following steps:
      1. Gaining Registrar Info Domain for Verification Compliance Information, which is not compliant (pending compliance in test).
      2. Gaining Registrar Create Real Name Verification Code (RNVC) with VSP using test registrant data.
      3. Gaining Registrar Transfer Request with RNVC.
      4. Losing Registrar Approves Transfer
    • setUp

      protected void setUp()
      JUNIT setUp method
      Overrides:
      setUp in class junit.framework.TestCase
    • tearDown

      protected void tearDown()
      JUNIT tearDown, which currently does nothing.
      Overrides:
      tearDown in class junit.framework.TestCase
    • suite

      public static junit.framework.Test suite()
      JUNIT suite static method, which returns the tests associated with ChinaVerificationCodeTst.
      Returns:
      Test Suite
    • main

      public static void main(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(String aTest)
      Print the start of a test with the Thread name if the current thread is a TestThread.
      Parameters:
      aTest - name for the test
    • printEnd

      public static void printEnd(String aTest)
      Print the end of a test with the Thread name if the current thread is a TestThread.
      Parameters:
      aTest - name for the test
    • makeDomainName

      public String makeDomainName(String aPrefix, String aTld)
      This method tries to generate a unique String as Domain Name and Name Server
      Parameters:
      aPrefix - Domain name prefix to use
      aTld - TLD to use in the domain name
      Returns:
      Unique domain name using aPrefix and aTld.
    • makeClientTransId

      public String makeClientTransId()
      Make unique client transaction identifier.
      Returns:
      Unique client transaction identifer