|
||||||||||
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.interfaces.EPPLaunchTst
public class EPPLaunchTst
Is a unit test of the using the LaunchPhase Extension classes with the
EPPDomain
class. The unit test will initialize a session with an
EPP Server, will invoke EPPDomain
operations with LaunchPhase
Extensions, and will end a session with an EPP Server. The configuration file
used by the unit test defaults to epp.config, but can be changed by passing
the file path as the first command line argument. The unit test can be run in
multiple threads by setting the "threads" system property. For example, the
unit test can be run in 2 threads with the configuration file
../../epp.config with the following command:
java com.verisign.epp.interfaces.EPPLaunchTst -Dthreads=2 ../../epp.config
The unit test is dependent on the use of JUNIT 3.5
Constructor Summary | |
---|---|
EPPLaunchTst(java.lang.String aName)
Allocates an EPPLaunchTst with a logical name. |
Method Summary | |
---|---|
void |
handleException(java.lang.Exception aException)
Handle an EPPCommandException , which can be either a server
generated error or a general exception. |
void |
launchCheck()
Unit test of using using the EPPLaunchCheck Extension with
EPPDomain info command with the following tests:Claims check with one domain name and implicitly setting the type. |
void |
launchCreateCodeMark()
Unit test of using using the EPPLaunchCreate Extension with
EPPDomain create command for sunrise with the use of
codeMark's. |
void |
launchCreateGeneric()
Unit test of using using the EPPLaunchCreate Extension with
EPPDomain create command using the Create Generic Form. |
void |
launchCreateNotice()
Unit test of using using the EPPLaunchCreate Extension with
EPPDomain create command for CLAIMS and claims2 phases with
the EPPLaunchNotice . |
void |
launchCreateSignedMark()
Unit test of using the EPPLaunchCreate Extension with
EPPDomain create command for sunrise with the use of
signedMark's. |
void |
launchDelete()
Unit test of using using the EPPLaunchDelete Extension with
EPPDomain delete command with the following tests:Delete command for sunrise application "abc123" Delete command for landrush application "abc123" Delete command for unsupported phase "CLAIMS" |
void |
launchInfo()
Unit test of using using the EPPLaunchInfo Extension with
EPPDomain info command with the following tests:Info command for sunrise application "abc123" Info command for sunrise registration Info command for landrush application Info command for unsupported landrush registration Info command for unsupported phase "CLAIMS" |
void |
launchPollMessaging()
Unit test of the poll messaging for intermediate and terminal status transitions The following tests are executed: Create a sunrise application APPPENDINGALLOCATION.TLD that transitions from "pendingValidation" to validated to "pendingAllocation". |
void |
launchTMCHPendingSunrise()
Unit test for executing a TMCH pending sunrise flow that includes the following: Create a sunrise application with a signed mark in XML for application 1 Create a sunrise application with a signed mark in Base64 for application 2 Execute an info of the sunrise application 1 using the application id Update the sunrise application that is chosen for allocation (application 1), that allocates application 1 and rejects application 2. |
void |
launchUpdate()
Unit test of using using the EPPLaunchUpdate Extension with
EPPDomain update command with the following tests:Update command for sunrise application "abc123" Update command for landrush application "abc123" Update command for unsupported phase "CLAIMS" |
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 ). |
java.lang.String |
makeDomainName()
This method tries to generate a unique String as Domain Name and Name Server |
protected void |
setUp()
JUNIT setUp method, which sets the default client Id to
"theRegistrar". |
static junit.framework.Test |
suite()
JUNIT suite static method, which returns the tests
associated with EPPLaunchTst . |
protected void |
tearDown()
JUNIT tearDown , which currently does nothing. |
void |
testLaunchPhase()
JUNIT test method to implement the EPPLaunchTst TestCase . |
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 EPPLaunchTst(java.lang.String aName)
EPPLaunchTst
with a logical name. The
constructor will initialize the base class TestCase
with the
logical name.
aName
- Logical name of the testMethod Detail |
---|
public void testLaunchPhase()
EPPLaunchTst TestCase
.
Each sub-test will be invoked in order to satisfy testing the EPPDomain
interface.
public void launchCheck()
EPPLaunchCheck
Extension with
EPPDomain
info command with the following tests:
public void launchInfo()
EPPLaunchInfo
Extension with
EPPDomain
info command with the following tests:
public void launchCreateCodeMark()
EPPLaunchCreate
Extension with
EPPDomain
create command for sunrise with the use of
codeMark's. The following tests are executed:
public void launchCreateSignedMark()
EPPLaunchCreate
Extension with
EPPDomain
create command for sunrise with the use of
signedMark's. The following tests are executed:
public void launchPollMessaging()
public void launchCreateGeneric()
EPPLaunchCreate
Extension with
EPPDomain
create command using the Create Generic Form. The
following tests are executed:
public void launchCreateNotice()
EPPLaunchCreate
Extension with
EPPDomain
create command for CLAIMS and claims2 phases with
the EPPLaunchNotice
. The following tests are executed:
public void launchUpdate()
EPPLaunchUpdate
Extension with
EPPDomain
update command with the following tests:
public void launchDelete()
EPPLaunchDelete
Extension with
EPPDomain
delete command with the following tests:
public void launchTMCHPendingSunrise()
protected void setUp()
setUp
method, which sets the default client Id to
"theRegistrar".
setUp
in class junit.framework.TestCase
protected void tearDown()
tearDown
, which currently does nothing.
tearDown
in class junit.framework.TestCase
public static junit.framework.Test suite()
suite
static method, which returns the tests
associated with EPPLaunchTst
.
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 testpublic static void main(java.lang.String[] args)
true
) or off (
false
). If validate is not specified, validation will be
off.
public java.lang.String makeDomainName()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |