|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
com.verisign.epp.pool.EPPSessionPoolTst
com.verisign.epp.pool.EPPSystemSessionPoolTst
public class EPPSystemSessionPoolTst
| Field Summary |
|---|
| Fields inherited from class com.verisign.epp.pool.EPPSessionPoolTst |
|---|
app, configFileName, sessionPool |
| Constructor Summary | |
|---|---|
EPPSystemSessionPoolTst(java.lang.String name)
Allocates an EPPSessionPoolTst with a logical name. |
|
| Method Summary | |
|---|---|
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). |
| Methods inherited from class com.verisign.epp.pool.EPPSessionPoolTst |
|---|
borrowSession, invalidateSession, returnSession, testAbsoluteTimeout, testCloseSession, testEndSession, testHello, testIdleTimeout, testPoll |
| Methods inherited from class junit.framework.TestCase |
|---|
countTestCases, createResult, getName, run, run, runBare, runTest, setName, toString |
| Methods inherited from class junit.framework.Assert |
|---|
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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
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 test| Method Detail |
|---|
public void testTwoSystemPools()
protected void setUp()
setUp method
setUp in class EPPSessionPoolTstprotected void tearDown()
tearDown, which currently does nothing.
tearDown in class EPPSessionPoolTstpublic 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 pool
protected void returnSession(java.lang.String aSystem,
EPPSession aSession)
aSystem - session pool nameaSession - Session to return to the pool
protected void invalidateSession(java.lang.String aSystem,
EPPSession aSession)
aSystem - System session pool nameaSession - Session to invalidate in the pool
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||