public class EPPRegistryTst
extends junit.framework.TestCase
Constructor and Description |
---|
EPPRegistryTst(java.lang.String name)
Allocates an
EPPRegistryTst with a logical name. |
Modifier and Type | Method and Description |
---|---|
void |
handleException(java.lang.Exception aException)
Handle an
EPPCommandException , which can be either a server
generated error or a general exception. |
java.lang.String |
makeTldName() |
void |
registryCheck(java.util.Map tldNames)
Unit test of
EPPRegistry.sendCheck . |
void |
registryCreate(java.lang.String tldName,
boolean shouldSucceed)
Unit test of
EPPRegistry.sendCreate . |
void |
registryDelete(java.lang.String tldName,
boolean shouldSucceed)
Unit test of
EPPRegistry.sendDelete . |
void |
registryInfo(java.lang.String tldName)
Unit test of
EPPRegistry.sendInfo . |
void |
registryUpdate(java.lang.String tldName,
boolean shouldSucceed)
Unit test of
EPPRegistry.sendUpdate . |
protected void |
setUp() |
static junit.framework.Test |
suite() |
protected void |
tearDown()
JUNIT
tearDown , which currently does nothing. |
void |
testRegistry() |
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 EPPRegistryTst(java.lang.String name)
EPPRegistryTst
with a logical name. The
constructor will initialize the base class TestCase
with the
logical name.name
- Logical name of the testpublic void testRegistry()
public void registryCheck(java.util.Map tldNames)
EPPRegistry.sendCheck
.tldNames
- TLDs to checkpublic void registryCreate(java.lang.String tldName, boolean shouldSucceed)
EPPRegistry.sendCreate
.tldName
- TLD name to createshouldSucceed
- true
if the create should succeed; false
otherwise.public void registryDelete(java.lang.String tldName, boolean shouldSucceed)
EPPRegistry.sendDelete
.tldName
- TLD name to deleteshouldSucceed
- true
if the delete should succeed; false
otherwise.public void registryUpdate(java.lang.String tldName, boolean shouldSucceed)
EPPRegistry.sendUpdate
.tldName
- TLD name to updateshouldSucceed
- true
if the update should succeed; false
otherwise.public void registryInfo(java.lang.String tldName)
EPPRegistry.sendInfo
.tldName
- TLD name to infopublic java.lang.String makeTldName()
public void handleException(java.lang.Exception aException)
EPPCommandException
, 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.aException
- Exception thrown during testpublic static junit.framework.Test suite()
protected void setUp()
setUp
in class junit.framework.TestCase
protected void tearDown()
tearDown
, which currently does nothing.tearDown
in class junit.framework.TestCase