public class EPPSystemSessionPoolTst extends EPPSessionPoolTst
app, configFileName, sessionPool
Constructor and Description |
---|
EPPSystemSessionPoolTst(java.lang.String name)
Allocates an
EPPSessionPoolTst with a logical name. |
Modifier and Type | Method and Description |
---|---|
protected EPPSession |
borrowSession(java.lang.String aSystem)
Utility method to borrow a session from the session pool.
|
void |
handleException(EPPCommandException aException,
EPPSession aSession)
Handle an
EPPCommandException , which can be either a server
generated error or a general exception. |
protected void |
invalidateSession(java.lang.String aSystem,
EPPSession aSession)
Utility method to invalidate a session in the session pool.
|
static void |
main(java.lang.String[] args)
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 ). |
static void |
printEnd(java.lang.String aTest)
Print the end of a test with the
Thread name if the current
thread is a TestThread . |
static void |
printStart(java.lang.String aTest)
Print the start of a test with the
Thread name if the
current thread is a TestThread . |
protected void |
returnSession(java.lang.String aSystem,
EPPSession aSession)
Utility method to return a session to the session pool.
|
protected void |
setUp()
JUNIT
setUp method |
static junit.framework.Test |
suite()
JUNIT
suite static method, which returns the tests
associated with EPPSessionPoolTst . |
protected void |
tearDown()
JUNIT
tearDown , which currently does nothing. |
void |
testTwoSystemPools()
Test interfacing with two system session pools
(test1 and test2 systems).
|
borrowSession, invalidateSession, returnSession, testAbsoluteTimeout, testCloseSession, testEndSession, testHello, testIdleTimeout, testPoll
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 EPPSystemSessionPoolTst(java.lang.String name)
EPPSessionPoolTst
with a logical name. The
constructor will initialize the base class TestCase
with
the logical name.name
- Logical name of the testpublic void testTwoSystemPools()
protected void setUp()
setUp
methodsetUp
in class EPPSessionPoolTst
protected void tearDown()
tearDown
, which currently does nothing.tearDown
in class EPPSessionPoolTst
public static junit.framework.Test suite()
suite
static method, which returns the tests
associated with EPPSessionPoolTst
.public static void main(java.lang.String[] args)
true
) or off
(false
). If validate is not specified, validation will be
off.
args
- DOCUMENT ME!public void handleException(EPPCommandException aException, EPPSession aSession)
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 void printStart(java.lang.String aTest)
Thread
name if the
current thread is a TestThread
.aTest
- name for the testpublic static void printEnd(java.lang.String aTest)
Thread
name if the current
thread is a TestThread
.aTest
- name for the testprotected EPPSession borrowSession(java.lang.String aSystem)
aSystem
- System session poolprotected void returnSession(java.lang.String aSystem, EPPSession aSession)
aSystem
- session pool nameaSession
- Session to return to the poolprotected void invalidateSession(java.lang.String aSystem, EPPSession aSession)
aSystem
- System session pool nameaSession
- Session to invalidate in the poolCopyright © VeriSign Inc. All Rights Reserved.