Package com.verisign.epp.interfaces
Class EPPRegistryTst
- java.lang.Object
-
- junit.framework.Assert
-
- junit.framework.TestCase
-
- com.verisign.epp.interfaces.EPPRegistryTst
-
- All Implemented Interfaces:
junit.framework.Test
public class EPPRegistryTst extends junit.framework.TestCase
-
-
Constructor Summary
Constructors Constructor Description EPPRegistryTst(java.lang.String name)
Allocates anEPPRegistryTst
with a logical name.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
handleException(java.lang.Exception aException)
Handle anEPPCommandException
, which can be either a server generated error or a general exception.java.lang.String
makeTldName()
void
registryCheck(java.util.Map tldNames)
Unit test ofEPPRegistry.sendCheck
.void
registryCreate(java.lang.String tldName, boolean shouldSucceed)
Unit test ofEPPRegistry.sendCreate
.void
registryDelete(java.lang.String tldName, boolean shouldSucceed)
Unit test ofEPPRegistry.sendDelete
.void
registryInfo(java.lang.String tldName)
Unit test ofEPPRegistry.sendInfo
.void
registryUpdate(java.lang.String tldName, boolean shouldSucceed)
Unit test ofEPPRegistry.sendUpdate
.protected void
setUp()
static junit.framework.Test
suite()
protected void
tearDown()
JUNITtearDown
, which currently does nothing.void
testRegistry()
-
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
-
testRegistry
public void testRegistry()
-
registryCheck
public void registryCheck(java.util.Map tldNames)
Unit test ofEPPRegistry.sendCheck
.- Parameters:
tldNames
- TLDs to check
-
registryCreate
public void registryCreate(java.lang.String tldName, boolean shouldSucceed)
Unit test ofEPPRegistry.sendCreate
.- Parameters:
tldName
- TLD name to createshouldSucceed
-true
if the create should succeed;false
otherwise.
-
registryDelete
public void registryDelete(java.lang.String tldName, boolean shouldSucceed)
Unit test ofEPPRegistry.sendDelete
.- Parameters:
tldName
- TLD name to deleteshouldSucceed
-true
if the delete should succeed;false
otherwise.
-
registryUpdate
public void registryUpdate(java.lang.String tldName, boolean shouldSucceed)
Unit test ofEPPRegistry.sendUpdate
.- Parameters:
tldName
- TLD name to updateshouldSucceed
-true
if the update should succeed;false
otherwise.
-
registryInfo
public void registryInfo(java.lang.String tldName)
Unit test ofEPPRegistry.sendInfo
.- Parameters:
tldName
- TLD name to info
-
makeTldName
public java.lang.String makeTldName()
-
handleException
public void handleException(java.lang.Exception aException)
Handle anEPPCommandException
, which can be either a server generated error or a general exception. If the exception was caused by a server error, "Server Error :<Response XML>" will be specified. If the exception was caused by a general algorithm error, "General Error :<Exception Description>" will be specified.- Parameters:
aException
- Exception thrown during test
-
suite
public static junit.framework.Test suite()
-
setUp
protected void setUp()
- Overrides:
setUp
in classjunit.framework.TestCase
-
tearDown
protected void tearDown()
JUNITtearDown
, which currently does nothing.- Overrides:
tearDown
in classjunit.framework.TestCase
-
-