Class NSHostTst
java.lang.Object
junit.framework.Assert
junit.framework.TestCase
com.verisign.epp.namestore.interfaces.NSHostTst
- All Implemented Interfaces:
junit.framework.Test
public class NSHostTst
extends junit.framework.TestCase
Test of the use of the
NSHost interface. This test utilizes the
EPP session pool and exercises all of the operations defined in
NSHost and the base class EPPHost.- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidUnit 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).This method generates a unique domain name.This method generates a unique external Host Name (i.e.This method generates a unique internal Host Name.makeInternalHost(String newDomainName) This method generates a unique internal Host Name for a given Domain NamemakeIP()This method generates a unique IPV4 address.static voidPrint the end of a test with theThreadname if the current thread is aTestThread.static voidprintStart(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 withNSHostTst.protected voidtearDown()JUNITtearDown, which currently does nothing.voidUnit test ofEPPSession.endSession.voidUnit test ofNSHost.sendHostCheckcommand.voidUnit test ofNSHost.sendCreatecommand.voidUnit test ofNSHost.sendDeletecommand.voidUnit test ofNSHost.sendHostInfocommand.voidUnit test ofNSHost.sendUpdatecommand.voidUnit 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
-
Constructor Details
-
NSHostTst
Allocates anNSHostTstwith a logical name. The constructor will initialize the base classTestCasewith the logical name.- Parameters:
name- Logical name of the test
-
-
Method Details
-
testHostCreate
public void testHostCreate()Unit test ofNSHost.sendCreatecommand. -
testHostCheck
public void testHostCheck()Unit test ofNSHost.sendHostCheckcommand. -
testHostInfo
public void testHostInfo()Unit test ofNSHost.sendHostInfocommand. -
testHostDelete
public void testHostDelete()Unit test ofNSHost.sendDeletecommand. -
testHostUpdate
public void testHostUpdate()Unit test ofNSHost.sendUpdatecommand. -
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()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 withNSHostTst.- Returns:
- DOCUMENT ME!
-
main
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
Print the start of a test with theThreadname if the current thread is aTestThread.- Parameters:
aTest- name for the test
-
printEnd
Print the end of a test with theThreadname if the current thread is aTestThread.- Parameters:
aTest- name for the test
-
makeDomainName
This method generates a unique domain name.- Returns:
- Unique domain name
-
makeIP
This method generates a unique IPV4 address.- Returns:
- Unique IPV4 address
-
makeInternalHost
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
This method generates a unique internal Host Name.- Returns:
- Unique internal host name
-
makeExternalHost
This method generates a unique external Host Name (i.e. BIZ).- Returns:
- Unique external host name
-