|
||||||||||
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.codec.gen.EPPCodecTst
public class EPPCodecTst
Is a unit test of the com.verisign.epp.codec.gen package. The unit test
will execute, gather statistics, and output the results of a test of
each com.verisign.epp.codec.gen package concrete EPPMessage
's
and their expected EPPResponse
. The unit test is
dependent on the use of JUNIT 3.5
The test EPPResponse
is duplicated for
EPPMessage
that do not contain a specialized
EPPResponse
to provide an example of a full
EPPMessage
transaction. All of the com.verisign.epp.codec.gen
package EPPMessage
classes are associated with
EPPResponse
.
Constructor Summary | |
---|---|
EPPCodecTst(java.lang.String aName)
Allocates an EPPCodecTst with a logical name. |
Method Summary | |
---|---|
static void |
initEnvironment()
Initialize the SDK environment based on the system properties: validate - true or false value indicating
if XML schema validation is enabled. |
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 . |
static void |
setNumIterations(long aNumIterations)
Sets the number of iterations to run per test. |
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 EPPCodecTst . |
protected void |
tearDown()
JUNIT tearDown , which currently does nothing. |
void |
testCommandGetExtensionFailOnDuplicate()
Unit test for using EPPCommand.getExtension(Class, boolean) . |
static EPPEncodeDecodeStats |
testEncodeDecode(EPPMessage aMessage)
Reusable unit test algorithm, which does the following: encodes the EPPMessage in XML
decodes the EPPMessage from XML
Serializes EPPMessage using Java Serialization
De-serializes EPPMessage using Java Serialization
Gathers unit test statistics and output them to standard out
|
void |
testGreeting()
Unit test of EPPGreeting . |
void |
testHello()
Unit test of EPPHello . |
void |
testLogin()
Unit test of EPPLoginCmd . |
void |
testLogout()
Unit test of EPPLogoutCmd . |
void |
testPoll()
Unit test of EPPPollCmd . |
void |
testResponse()
Unit test of EPPResponse . |
void |
testResponseGetExtensionFailOnDuplicate()
Unit test for using EPPResponse.getExtension(Class, boolean) . |
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 EPPCodecTst(java.lang.String aName)
EPPCodecTst
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 testGreeting()
EPPGreeting
. There is no response associated
with EPPGreeting
other than a EPPLoginCmd
which is testing in testLogin
.
public void testLogin()
EPPLoginCmd
. The response to
EPPLoginCmd
is EPPResponse
.
public void testLogout()
EPPLogoutCmd
. The response to
EPPLogoutCmd
is EPPResponse
.
public void testResponse()
EPPResponse
. This will test
EPPResponse
with various attribute values.
public void testCommandGetExtensionFailOnDuplicate()
EPPCommand.getExtension(Class, boolean)
.
public void testResponseGetExtensionFailOnDuplicate()
EPPResponse.getExtension(Class, boolean)
.
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 void initEnvironment()
true
or false
value indicating
if XML schema validation is enabled. The default value is true
true
or false
value indicating
if full XML schema validation is enabled. The default value is true
.
epp.log
.
Environment
class and the logging will be initialized.
public static junit.framework.Test suite()
suite
static method, which returns the tests
associated with EPPCodecTst
.
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 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 testpublic static EPPEncodeDecodeStats testEncodeDecode(EPPMessage aMessage)
EPPMessage
in XML
EPPMessage
from XML
EPPMessage
using Java Serialization
EPPMessage
using Java Serialization
aMessage
- EPP Message to test encoding and decoding
public static void setNumIterations(long aNumIterations)
aNumIterations
- number of iterations to run per testpublic void testHello()
EPPHello
. The response to
EPPHello
is EPPResponse
.
public void testPoll()
EPPPollCmd
. The response to
EPPPollCmd
is EPPResponse
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |