public class NSDomainTst
extends junit.framework.TestCase
NSDomain
interface. This test utilizes
the EPP session pool and exercises all of the operations defined in
NSDomain
and the base class EPPDomain
.Constructor and Description |
---|
NSDomainTst(java.lang.String name)
Allocates an
NSDomainTst with a logical name. |
Modifier and Type | Method and 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 |
makeContactName()
Makes a unique contact name using the current time.
|
java.lang.String |
makeDomainName()
This method tries to generate a unique String as Domain Name and Name
Server
|
java.lang.String |
makeHostName(java.lang.String newDomainName)
Makes a unique host name for a domain using the current time.
|
java.lang.String |
makeIP()
Makes a unique IP address based off of the current time.
|
static void |
printEnd(java.lang.String aTest)
Print the end of a test with the
Thread name if the current
thread is a TestThread . |
static void |
printStart(java.lang.String aTest)
Print the start of a test with the
Thread name if the current
thread is a TestThread . |
protected void |
setUp()
JUNIT
setUp method |
static junit.framework.Test |
suite()
JUNIT
suite static method, which returns the tests associated
with NSDomainTst . |
protected void |
tearDown()
JUNIT
tearDown , which currently does nothing. |
void |
testAllocationToken()
Unit test using NSDomain.setAllocationToken(String) with domain check,
domain info, domain create, domain update, and domain transfer.
|
void |
testAsyncCommands()
Unit test processing responses asynchronous from the commands.
|
void |
testCreateDsDataInterface()
Unit test of
EPPDomain.sendCreate for secDNS 1.1 using the DS
Data Interface. |
void |
testDomainCheck()
Unit test of
NSDomain.sendDomainCheck command. |
void |
testDomainCoaCreate()
Unit test of
NSDomain.sendCreate command with COA extension. |
void |
testDomainCoaUpdate()
Unit test of
NSDomain.sendUpdate command with COA extension. |
void |
testDomainCreate()
Unit test of
NSDomain.sendCreate command. |
void |
testDomainDelete()
Unit test of
NSDomain.sendDelete command. |
void |
testDomainIDNCreate()
Unit test of
NSDomain.sendCreate command with IDN tag
extension. |
void |
testDomainInfo()
Unit test of
NSDomain.sendDomainInfo command. |
void |
testDomainRenew()
Unit test of
NSDomain.sendDomainRenew command. |
void |
testDomainRestoreReport()
Unit test of
NSDomain.sendRestoreReport command. |
void |
testDomainRestoreRequest()
Unit test of
NSDomain.sendRestoreRequest command. |
void |
testDomainSync()
Unit test of
NSDomain.sendSync command. |
void |
testDomainTransfer()
Unit test of
NSDomain.sendTransfer command. |
void |
testDomainUpdate()
Unit test of
NSDomain.sendUpdate command. |
void |
testEndSession()
Unit test of
EPPSession.endSession . |
void |
testOrgId()
Unit test using
NSDomain.addOrgId(com.verisign.epp.codec.orgext.EPPOrgExtId) to
set the org identifier on create and
NSDomain.addUpdateOrgId(int, com.verisign.epp.codec.orgext.EPPOrgExtId)
to update the org identifier of an existing domain. |
void |
testRelatedDomainCreate()
Unit test of
NSDomain.sendRelatedCreate . |
void |
testSecDNS10()
Unit test of support secDNS-1.0 with NSDomain for backward compatibility.
|
void |
testUpdateDsDataInterface()
Unit test of
EPPDomain.sendUpdate for secDNS 1.1 using the DS
Data Interface. |
countTestCases, createResult, getName, run, run, runBare, runTest, setName, toString
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
public NSDomainTst(java.lang.String name)
NSDomainTst
with a logical name. The constructor
will initialize the base class TestCase
with the logical
name.name
- Logical name of the testpublic void testDomainCreate()
NSDomain.sendCreate
command.public void testRelatedDomainCreate()
NSDomain.sendRelatedCreate
.public void testCreateDsDataInterface()
EPPDomain.sendCreate
for secDNS 1.1 using the DS
Data Interface. The VeriSign servers only support the DS Data Interface.
The following tests will be executed:public void testUpdateDsDataInterface()
EPPDomain.sendUpdate
for secDNS 1.1 using the DS
Data Interface. The VeriSign servers only support the DS Data Interface.
The following tests will be executed:public void testDomainCheck()
NSDomain.sendDomainCheck
command.public void testDomainInfo()
NSDomain.sendDomainInfo
command.public void testDomainDelete()
NSDomain.sendDelete
command.public void testDomainRenew()
NSDomain.sendDomainRenew
command.public void testDomainUpdate()
NSDomain.sendUpdate
command.public void testDomainTransfer()
NSDomain.sendTransfer
command.public void testDomainSync()
NSDomain.sendSync
command.public void testDomainRestoreRequest()
NSDomain.sendRestoreRequest
command.public void testDomainRestoreReport()
NSDomain.sendRestoreReport
command.public void testDomainIDNCreate()
NSDomain.sendCreate
command with IDN tag
extension.public void testAllocationToken()
public void testOrgId()
NSDomain.addOrgId(com.verisign.epp.codec.orgext.EPPOrgExtId)
to
set the org identifier on create and
NSDomain.addUpdateOrgId(int, com.verisign.epp.codec.orgext.EPPOrgExtId)
to update the org identifier of an existing domain.public void testEndSession()
EPPSession.endSession
. One session in the
session pool will be ended.public void testAsyncCommands()
public void testSecDNS10()
protected void setUp()
setUp
methodsetUp
in class junit.framework.TestCase
protected void tearDown()
tearDown
, which currently does nothing.tearDown
in class junit.framework.TestCase
public static junit.framework.Test suite()
suite
static method, which returns the tests associated
with NSDomainTst
.public static void main(java.lang.String[] args)
true
) or off (
false
). If validate is not specified, validation will be off.
args
- DOCUMENT ME!public static void printStart(java.lang.String aTest)
Thread
name if the current
thread is a TestThread
.aTest
- name for the testpublic static void printEnd(java.lang.String aTest)
Thread
name if the current
thread is a TestThread
.aTest
- name for the testpublic java.lang.String makeDomainName()
public java.lang.String makeIP()
String
public java.lang.String makeHostName(java.lang.String newDomainName)
newDomainName
- DOCUMENT ME!String
public java.lang.String makeContactName()
String
public void testDomainCoaCreate()
NSDomain.sendCreate
command with COA extension.public void testDomainCoaUpdate()
NSDomain.sendUpdate
command with COA extension.