Class RZDomainTst
java.lang.Object
junit.framework.Assert
junit.framework.TestCase
com.verisign.epp.rootzone.interfaces.RZDomainTst
- All Implemented Interfaces:
junit.framework.Test
public class RZDomainTst
extends junit.framework.TestCase
Test of the use of the
NSDomain interface. This test utilizes
the EPP session pool and exercises all of the operations defined in
NSDomain and the base class EPPDomain.- 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).Makes a unique contact name using the current time.This method tries to generate a unique String as Domain Name and Name ServermakeHostName(String newDomainName) Makes a unique host name for a domain using the current time.makeIP()Makes a unique IP address based off of the current time.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 withNSDomainTst.protected voidtearDown()JUNITtearDown, which currently does nothing.voidUnit test ofNSDomain.sendDomainCheckcommand.voidUnit test ofNSDomain.sendCreatecommand.voidUnit test ofNSDomain.sendDeletecommand.voidUnit test ofNSDomain.sendCreatecommand with IDN tag extension.voidUnit test ofNSDomain.sendDomainInfocommand.voidUnit test ofNSDomain.sendUpdatecommand.voidUnit test ofEPPSession.endSession.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
-
RZDomainTst
Allocates anNSDomainTstwith a logical name. The constructor will initialize the base classTestCasewith the logical name.- Parameters:
name- Logical name of the test
-
-
Method Details
-
testDomainCreate
public void testDomainCreate()Unit test ofNSDomain.sendCreatecommand. -
testDomainCheck
public void testDomainCheck()Unit test ofNSDomain.sendDomainCheckcommand. -
testDomainInfo
public void testDomainInfo()Unit test ofNSDomain.sendDomainInfocommand. -
testDomainDelete
public void testDomainDelete()Unit test ofNSDomain.sendDeletecommand. -
testDomainUpdate
public void testDomainUpdate()Unit test ofNSDomain.sendUpdatecommand. -
testDomainIDNCreate
public void testDomainIDNCreate()Unit test ofNSDomain.sendCreatecommand with IDN tag extension. -
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 withNSDomainTst.- 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 tries to generate a unique String as Domain Name and Name Server- Returns:
- Unique domain name
-
makeIP
Makes a unique IP address based off of the current time.- Returns:
- Unique IP address
String
-
makeHostName
Makes a unique host name for a domain using the current time.- Parameters:
newDomainName- DOCUMENT ME!- Returns:
- Unique host name
String
-
makeContactName
Makes a unique contact name using the current time.- Returns:
- Unique contact name
String
-