Class NSContactTst
- java.lang.Object
-
- junit.framework.Assert
-
- junit.framework.TestCase
-
- com.verisign.epp.namestore.interfaces.NSContactTst
-
- All Implemented Interfaces:
junit.framework.Test
public class NSContactTst extends junit.framework.TestCase
Test of the use of theNSContact
interface. This test utilizes the EPP session pool and exercises all of the operations defined inNSContact
and the base classEPPContact
.- See Also:
NSContact
,EPPContact
-
-
Constructor Summary
Constructors Constructor Description NSContactTst(java.lang.String name)
Allocates anNSContactTst
with a logical name.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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 theThread
name if the current thread is aTestThread
.static void
printStart(java.lang.String aTest)
Print the start of a test with theThread
name if the current thread is aTestThread
.protected void
setUp()
JUNITsetUp
methodstatic junit.framework.Test
suite()
JUNITsuite
static method, which returns the tests associated withNSContactTst
.protected void
tearDown()
JUNITtearDown
, which currently does nothing.void
testContactCheck()
Unit test ofNSContact.sendContactCheck
command.void
testContactCreate()
Unit test ofNSContact.sendCreate
command.void
testContactDelete()
Unit test ofNSContact.sendDelete
command.void
testContactInfo()
Unit test ofNSContact.sendContactInfo
command.void
testContactUpdate()
Unit test ofNSContact.sendUpdate
command.void
testEndSession()
Unit test ofEPPSession.endSession
.void
testResellerId()
Unit test usingNSContact.addOrgId(EPPOrgExtId)
to set the reseller identifier on create andNSContact.addUpdateOrgId(int, EPPOrgExtId)
to update the reseller identifier of an existing contact.-
Methods inherited from class junit.framework.TestCase
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, countTestCases, createResult, fail, fail, failNotEquals, failNotSame, failSame, format, getName, run, run, runBare, runTest, setName, toString
-
-
-
-
Method Detail
-
testContactCreate
public void testContactCreate()
Unit test ofNSContact.sendCreate
command.
-
testContactCheck
public void testContactCheck()
Unit test ofNSContact.sendContactCheck
command.
-
testContactInfo
public void testContactInfo()
Unit test ofNSContact.sendContactInfo
command.
-
testContactDelete
public void testContactDelete()
Unit test ofNSContact.sendDelete
command.
-
testContactUpdate
public void testContactUpdate()
Unit test ofNSContact.sendUpdate
command.
-
testResellerId
public void testResellerId()
Unit test usingNSContact.addOrgId(EPPOrgExtId)
to set the reseller identifier on create andNSContact.addUpdateOrgId(int, EPPOrgExtId)
to update the reseller identifier of an existing contact.
-
testEndSession
public void testEndSession()
Unit test ofEPPSession.endSession
. One session in the session pool wil be ended.
-
setUp
protected void setUp()
JUNITsetUp
method- Overrides:
setUp
in classjunit.framework.TestCase
-
tearDown
protected void tearDown()
JUNITtearDown
, which currently does nothing.- Overrides:
tearDown
in classjunit.framework.TestCase
-
suite
public static junit.framework.Test suite()
JUNITsuite
static method, which returns the tests associated withNSContactTst
.- Returns:
- Test suite
-
main
public 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
). If validate is not specified, validation will be off.
- Parameters:
args
- DOCUMENT ME!
-
printStart
public static void printStart(java.lang.String aTest)
Print the start of a test with theThread
name if the current thread is aTestThread
.- Parameters:
aTest
- name for the test
-
printEnd
public static void printEnd(java.lang.String aTest)
Print the end of a test with theThread
name if the current thread is aTestThread
.- Parameters:
aTest
- name for the test
-
makeContactName
public java.lang.String makeContactName()
This method generates a unique Contact Name.- Returns:
- Unique contact name
-
-