Class NSDomainTst
- java.lang.Object
-
- junit.framework.Assert
-
- junit.framework.TestCase
-
- com.verisign.epp.namestore.interfaces.NSDomainTst
-
- All Implemented Interfaces:
junit.framework.Test
public class NSDomainTst extends junit.framework.TestCaseTest of the use of theNSDomaininterface. This test utilizes the EPP session pool and exercises all of the operations defined inNSDomainand the base classEPPDomain.
-
-
Constructor Summary
Constructors Constructor Description NSDomainTst(java.lang.String name)Allocates anNSDomainTstwith 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.StringmakeContactName()Makes a unique contact name using the current time.java.lang.StringmakeDomainName()This method tries to generate a unique String as Domain Name and Name Serverjava.lang.StringmakeHostName(java.lang.String newDomainName)Makes a unique host name for a domain using the current time.java.lang.StringmakeIP()Makes a unique IP address based off of the current time.static 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 withNSDomainTst.protected voidtearDown()JUNITtearDown, which currently does nothing.voidtestAllocationToken()Unit test using NSDomain.setAllocationToken(String) with domain check, domain info, domain create, domain update, and domain transfer.voidtestAsyncCommands()Unit test processing responses asynchronous from the commands.voidtestCreateDsDataInterface()Unit test ofEPPDomain.sendCreatefor secDNS 1.1 using the DS Data Interface.voidtestDomainCheck()Unit test ofNSDomain.sendDomainCheckcommand.voidtestDomainCoaCreate()Unit test ofNSDomain.sendCreatecommand with COA extension.voidtestDomainCoaUpdate()Unit test ofNSDomain.sendUpdatecommand with COA extension.voidtestDomainCreate()Unit test ofNSDomain.sendCreatecommand.voidtestDomainDelete()Unit test ofNSDomain.sendDeletecommand.voidtestDomainIDNCreate()Unit test ofNSDomain.sendCreatecommand with IDN tag extension.voidtestDomainInfo()Unit test ofNSDomain.sendDomainInfocommand.voidtestDomainRenew()Unit test ofNSDomain.sendDomainRenewcommand.voidtestDomainRestoreReport()Unit test ofNSDomain.sendRestoreReportcommand.voidtestDomainRestoreRequest()Unit test ofNSDomain.sendRestoreRequestcommand.voidtestDomainSync()Unit test ofNSDomain.sendSynccommand.voidtestDomainTransfer()Unit test ofNSDomain.sendTransfercommand.voidtestDomainUpdate()Unit test ofNSDomain.sendUpdatecommand.voidtestEndSession()Unit test ofEPPSession.endSession.voidtestOrgId()Unit test usingNSDomain.addOrgId(com.verisign.epp.codec.orgext.EPPOrgExtId)to set the org identifier on create andNSDomain.addUpdateOrgId(int, com.verisign.epp.codec.orgext.EPPOrgExtId)to update the org identifier of an existing domain.voidtestRelatedDomainCreate()Unit test ofNSDomain.sendRelatedCreate.voidtestSecDNS10()Unit test of support secDNS-1.0 with NSDomain for backward compatibility.voidtestUpdateDsDataInterface()Unit test ofEPPDomain.sendUpdatefor secDNS 1.1 using the DS Data Interface.-
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
-
testDomainCreate
public void testDomainCreate()
Unit test ofNSDomain.sendCreatecommand.
-
testRelatedDomainCreate
public void testRelatedDomainCreate()
Unit test ofNSDomain.sendRelatedCreate.
-
testCreateDsDataInterface
public void testCreateDsDataInterface()
Unit test ofEPPDomain.sendCreatefor secDNS 1.1 using the DS Data Interface. The VeriSign servers only support the DS Data Interface. The following tests will be executed:
- Create for a Secure Delegation using the DS Data Interface with one DS.
- Create for a Secure Delegation using the DS Data Interface with two DS. One DS created from key data.
-
testUpdateDsDataInterface
public void testUpdateDsDataInterface()
Unit test ofEPPDomain.sendUpdatefor secDNS 1.1 using the DS Data Interface. The VeriSign servers only support the DS Data Interface. The following tests will be executed:
- Adding and Removing DS Data using the DS Data Interface.
- Remove all DS using <secDNS:rem> with <secDNS:all>.
- Replacing all DS Data using the DS Data Interface.
-
testDomainCheck
public void testDomainCheck()
Unit test ofNSDomain.sendDomainCheckcommand.
-
testDomainInfo
public void testDomainInfo()
Unit test ofNSDomain.sendDomainInfocommand.
-
testDomainDelete
public void testDomainDelete()
Unit test ofNSDomain.sendDeletecommand.
-
testDomainRenew
public void testDomainRenew()
Unit test ofNSDomain.sendDomainRenewcommand.
-
testDomainUpdate
public void testDomainUpdate()
Unit test ofNSDomain.sendUpdatecommand.
-
testDomainTransfer
public void testDomainTransfer()
Unit test ofNSDomain.sendTransfercommand.
-
testDomainSync
public void testDomainSync()
Unit test ofNSDomain.sendSynccommand.
-
testDomainRestoreRequest
public void testDomainRestoreRequest()
Unit test ofNSDomain.sendRestoreRequestcommand.
-
testDomainRestoreReport
public void testDomainRestoreReport()
Unit test ofNSDomain.sendRestoreReportcommand.
-
testDomainIDNCreate
public void testDomainIDNCreate()
Unit test ofNSDomain.sendCreatecommand with IDN tag extension.
-
testAllocationToken
public void testAllocationToken()
Unit test using NSDomain.setAllocationToken(String) with domain check, domain info, domain create, domain update, and domain transfer.
-
testOrgId
public void testOrgId()
Unit test usingNSDomain.addOrgId(com.verisign.epp.codec.orgext.EPPOrgExtId)to set the org identifier on create andNSDomain.addUpdateOrgId(int, com.verisign.epp.codec.orgext.EPPOrgExtId)to update the org identifier of an existing domain.
-
testEndSession
public void testEndSession()
Unit test ofEPPSession.endSession. One session in the session pool will be ended.
-
testAsyncCommands
public void testAsyncCommands()
Unit test processing responses asynchronous from the commands. This is a test of the use of pipelining.
-
testSecDNS10
public void testSecDNS10()
Unit test of support secDNS-1.0 with NSDomain for backward compatibility.
-
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 withNSDomainTst.- Returns:
- DOCUMENT ME!
-
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- DOCUMENT ME!
-
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()
This method tries to generate a unique String as Domain Name and Name Server- Returns:
- Unique domain name
-
makeIP
public java.lang.String makeIP()
Makes a unique IP address based off of the current time.- Returns:
- Unique IP address
String
-
makeHostName
public java.lang.String makeHostName(java.lang.String newDomainName)
Makes a unique host name for a domain using the current time.- Parameters:
newDomainName- DOCUMENT ME!- Returns:
- Unique host name
String
-
makeContactName
public java.lang.String makeContactName()
Makes a unique contact name using the current time.- Returns:
- Unique contact name
String
-
testDomainCoaCreate
public void testDomainCoaCreate()
Unit test ofNSDomain.sendCreatecommand with COA extension.
-
testDomainCoaUpdate
public void testDomainCoaUpdate()
Unit test ofNSDomain.sendUpdatecommand with COA extension.
-
-