public class NSContactTst
extends junit.framework.TestCase
NSContact
interface. This test utilizes
the EPP session pool and exercises all of the operations defined in
NSContact
and the base class EPPContact
.NSContact
,
EPPContact
Constructor and Description |
---|
NSContactTst(java.lang.String name)
Allocates an
NSContactTst with a logical name. |
Modifier and Type | Method and Description |
---|---|
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 |
makeContactName()
This method generates a unique Contact Name.
|
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 |
setUp()
JUNIT
setUp method |
static junit.framework.Test |
suite()
JUNIT
suite static method, which returns the tests associated
with NSContactTst . |
protected void |
tearDown()
JUNIT
tearDown , which currently does nothing. |
void |
testContactCheck()
Unit test of
NSContact.sendContactCheck command. |
void |
testContactCreate()
Unit test of
NSContact.sendCreate command. |
void |
testContactDelete()
Unit test of
NSContact.sendDelete command. |
void |
testContactInfo()
Unit test of
NSContact.sendContactInfo command. |
void |
testContactUpdate()
Unit test of
NSContact.sendUpdate command. |
void |
testEndSession()
Unit test of
EPPSession.endSession . |
void |
testResellerId()
Unit test using
NSContact.addOrgId(EPPOrgExtId) to set the
reseller identifier on create and
NSContact.addUpdateOrgId(int, EPPOrgExtId) to update the reseller
identifier of an existing contact. |
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 NSContactTst(java.lang.String name)
NSContactTst
with a logical name. The
constructor will initialize the base class TestCase
with the
logical name.name
- Logical name of the testpublic void testContactCreate()
NSContact.sendCreate
command.public void testContactCheck()
NSContact.sendContactCheck
command.public void testContactInfo()
NSContact.sendContactInfo
command.public void testContactDelete()
NSContact.sendDelete
command.public void testContactUpdate()
NSContact.sendUpdate
command.public void testResellerId()
NSContact.addOrgId(EPPOrgExtId)
to set the
reseller identifier on create and
NSContact.addUpdateOrgId(int, EPPOrgExtId)
to update the reseller
identifier of an existing contact.public void testEndSession()
EPPSession.endSession
. One session in the
session pool wil be ended.protected void setUp()
setUp
methodsetUp
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 NSContactTst
.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 java.lang.String makeContactName()