Class NSHostTst
- java.lang.Object
-
- junit.framework.Assert
-
- junit.framework.TestCase
-
- com.verisign.epp.namestore.interfaces.NSHostTst
-
-
Constructor Summary
Constructors Constructor Description NSHostTst(java.lang.String name)
Allocates anNSHostTst
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
makeDomainName()
This method generates a unique domain name.java.lang.String
makeExternalHost()
This method generates a unique external Host Name (i.e.java.lang.String
makeInternalHost()
This method generates a unique internal Host Name.java.lang.String
makeInternalHost(java.lang.String newDomainName)
This method generates a unique internal Host Name for a given Domain Namejava.lang.String
makeIP()
This method generates a unique IPV4 address.static 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 withNSHostTst
.protected void
tearDown()
JUNITtearDown
, which currently does nothing.void
testEndSession()
Unit test ofEPPSession.endSession
.void
testHostCheck()
Unit test ofNSHost.sendHostCheck
command.void
testHostCreate()
Unit test ofNSHost.sendCreate
command.void
testHostDelete()
Unit test ofNSHost.sendDelete
command.void
testHostInfo()
Unit test ofNSHost.sendHostInfo
command.void
testHostUpdate()
Unit test ofNSHost.sendUpdate
command.void
testResellerId()
Unit test usingNSHost.addOrgId(EPPOrgExtId)
to set the reseller identifier on create andNSHost.addUpdateOrgId(int, EPPOrgExtId)
to update the reseller identifier of an existing host.-
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
-
testHostCreate
public void testHostCreate()
Unit test ofNSHost.sendCreate
command.
-
testHostCheck
public void testHostCheck()
Unit test ofNSHost.sendHostCheck
command.
-
testHostInfo
public void testHostInfo()
Unit test ofNSHost.sendHostInfo
command.
-
testHostDelete
public void testHostDelete()
Unit test ofNSHost.sendDelete
command.
-
testHostUpdate
public void testHostUpdate()
Unit test ofNSHost.sendUpdate
command.
-
testResellerId
public void testResellerId()
Unit test usingNSHost.addOrgId(EPPOrgExtId)
to set the reseller identifier on create andNSHost.addUpdateOrgId(int, EPPOrgExtId)
to update the reseller identifier of an existing host.
-
testEndSession
public void testEndSession()
Unit test ofEPPSession.endSession
. One session in the session pool wil be ended.
-
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 withNSHostTst
.- 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 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()
This method generates a unique domain name.- Returns:
- Unique domain name
-
makeIP
public java.lang.String makeIP()
This method generates a unique IPV4 address.- Returns:
- Unique IPV4 address
-
makeInternalHost
public java.lang.String makeInternalHost(java.lang.String newDomainName)
This method generates a unique internal Host Name for a given Domain Name- Parameters:
newDomainName
- Domain name to based host name on- Returns:
- Unique host name
-
makeInternalHost
public java.lang.String makeInternalHost()
This method generates a unique internal Host Name.- Returns:
- Unique internal host name
-
makeExternalHost
public java.lang.String makeExternalHost()
This method generates a unique external Host Name (i.e. BIZ).- Returns:
- Unique external host name
-
-