public abstract class EPPBaseTst
extends junit.framework.TestCase
Modifier and Type | Field and Description |
---|---|
protected static java.lang.String |
configFileName
Name of configuration file to use for test (default = epp.config).
|
protected int |
iteration
Current test iteration
|
Constructor and Description |
---|
EPPBaseTst(java.lang.String aName)
The constructor will initialize the base class
TestCase with
the logical name. |
Modifier and Type | Method and Description |
---|---|
protected void |
createSession()
create session method, which sets the default client Id to "theRegistrar".
|
protected static void |
endApplication() |
protected void |
endSession()
Unit test of
EPPSession.endSession . |
EPPSession |
getSession()
This method returns the active EPP Session
|
void |
handleException(java.lang.Exception aException)
Handle an
EPPCommandException , which can be either a server
generated error or a general exception. |
protected static void |
initApplication() |
java.lang.String |
makeDomainName()
This method tries to generate a unique String
|
protected void |
printEnd(java.lang.String aTest)
Print the end of a test with the
Thread name if the current
thread is a TestThread . |
protected void |
printError(java.lang.String aMsg)
Print error message
|
protected void |
printMsg(java.lang.String aMsg)
Print message
|
protected void |
printStart(java.lang.String aTest)
Print the start of a test with the
Thread name if the current
thread is a TestThread . |
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, tearDown, 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
protected static java.lang.String configFileName
protected int iteration
public EPPBaseTst(java.lang.String aName)
TestCase
with
the logical name.aName
- Logical name of the testpublic EPPSession getSession()
protected void endSession()
EPPSession.endSession
. The session with the EPP
Server will be terminated.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 :aException
- Exception thrown during testprotected void printStart(java.lang.String aTest)
Thread
name if the current
thread is a TestThread
.aTest
- Logical name for the testprotected void printEnd(java.lang.String aTest)
Thread
name if the current
thread is a TestThread
.aTest
- Logical name for the testprotected void printMsg(java.lang.String aMsg)
aMsg
- message to printprotected void printError(java.lang.String aMsg)
aMsg
- errpr message to printprotected void createSession()
protected static void endApplication()
protected static void initApplication()
public java.lang.String makeDomainName()
Copyright © VeriSign Inc. All Rights Reserved.