Package com.verisign.epp.codec.contact
Class EPPContactRelaxedValidationTst
- java.lang.Object
-
- junit.framework.Assert
-
- junit.framework.TestCase
-
- com.verisign.epp.codec.contact.EPPContactRelaxedValidationTst
-
- All Implemented Interfaces:
junit.framework.Test
public class EPPContactRelaxedValidationTst extends junit.framework.TestCase
Is a unit test of the com.verisign.epp.codec.contact package. The unit test will execute, gather statistics, and output the results of a test of each com.verisign.epp.codec.contact package concreteEPPCommand
's and their expectedEPPResponse
with relaxed validation rules. The unit test is dependent on the use of JUNIT 3.5
-
-
Constructor Summary
Constructors Constructor Description EPPContactRelaxedValidationTst(java.lang.String name)
Creates a new EPPContactRelaxedValidationTst object.
-
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
).static void
setNumIterations(long aNumIterations)
Sets the number of iterations to run per test.protected void
setUp()
JUNITsetUp
method, which sets the default client Id to "theRegistrar" and initializes theEPPContactMapFactory
with theEPPCodec
.static junit.framework.Test
suite()
JUNITsuite
static method, which returns the tests associated withEPPContactTst
.protected void
tearDown()
JUNITtearDown
, which currently does nothing.void
testContactCheck()
Unit test ofEPPContactCheckCmd
with relaxed validation.void
testContactCreateWithAllOptionalElementsForRelaxedValidations()
Unit test ofEPPContactCreateCmd
that uses relaxed validations.void
testContactCreateWithPartialOptionalElementsForRelaxedValidations()
Unit test ofEPPContactCreateCmd
that uses relaxed validations.void
testContactDelete()
Unit test ofEPPContactDeleteCmd
.void
testContactFullInfoWithRelaxedValidations()
Unit test ofEPPContactInfoCmd
with relaxed validations.void
testContactInfoWithRelaxedValidation()
Unit test ofEPPContactInfoCmd
with relaxed validation.void
testContactPartialInfoWithRelaxedValidation()
Unit test ofEPPContactInfoCmd
with relaxed validations.void
testContactTransfer()
Unit test ofEPPContactTransferCmd
.void
testContactUpdate()
Unit test ofEPPContactUpdateCmd
.void
testMinimumContactCreateWithRelaxedValidations()
Unit test ofEPPContactCreateCmd
with relaxed validations.-
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
-
testMinimumContactCreateWithRelaxedValidations
public void testMinimumContactCreateWithRelaxedValidations()
Unit test ofEPPContactCreateCmd
with relaxed validations. For relaxed validations client contact id, authinfo and postal info type are the only mandatory elements. All other elements are optional. The response toEPPContactCreateCmd
isEPPContactCreateResp
.
This test will be invoked by JUNIT, since it is prefixed with "test" and is a public method.
-
testContactCreateWithPartialOptionalElementsForRelaxedValidations
public void testContactCreateWithPartialOptionalElementsForRelaxedValidations()
Unit test ofEPPContactCreateCmd
that uses relaxed validations. Send some of the optional elements in the request along with all mandatory elements. The response toEPPContactCreateCmd
isEPPContactCreateResp
.
This test will be invoked by JUNIT, since it is prefixed with "test" and is a public method.
-
testContactCreateWithAllOptionalElementsForRelaxedValidations
public void testContactCreateWithAllOptionalElementsForRelaxedValidations()
Unit test ofEPPContactCreateCmd
that uses relaxed validations. Send all the mandatory and optional elements in the request. The response toEPPContactCreateCmd
isEPPContactCreateResp
.
This test will be invoked by JUNIT, since it is prefixed with "test" and is a public method.
-
testContactInfoWithRelaxedValidation
public void testContactInfoWithRelaxedValidation()
Unit test ofEPPContactInfoCmd
with relaxed validation. Info response sends minimal mandatory elements. The response toEPPContactInfoCmd
isEPPContactInfoResp
.
This test will be invoked by JUNIT, since it is prefixed with "test" and is a public method.
-
testContactPartialInfoWithRelaxedValidation
public void testContactPartialInfoWithRelaxedValidation()
Unit test ofEPPContactInfoCmd
with relaxed validations. Info response sends mandatory and some of the optional elements. The response toEPPContactInfoCmd
isEPPContactInfoResp
.
This test will be invoked by JUNIT, since it is prefixed with "test" and is a public method.
-
testContactFullInfoWithRelaxedValidations
public void testContactFullInfoWithRelaxedValidations()
Unit test ofEPPContactInfoCmd
with relaxed validations. Info response sends all the elements. The response toEPPContactInfoCmd
isEPPContactInfoResp
.
This test will be invoked by JUNIT, since it is prefixed with "test" and is a public method.
-
testContactDelete
public void testContactDelete()
Unit test ofEPPContactDeleteCmd
. Verify that relax validation has no impact on contact delete. The response toEPPContactDeleteCmd
isEPPContactDeleteResp
.
This test will be invoked by JUNIT, since it is prefixed with "test" and is a public method.
-
testContactCheck
public void testContactCheck()
Unit test ofEPPContactCheckCmd
with relaxed validation. Verify that relax validation has no impact on contact check. The response toEPPContactCheckCmd
isEPPContactCheckResp
.
This test will be invoked by JUNIT, since it is prefixed with "test" and is a public method.
-
testContactUpdate
public void testContactUpdate()
Unit test ofEPPContactUpdateCmd
. Verify that relax validation has no impact on contact update. The response toEPPContactUpdateCmd
isEPPResponse
.
This test will be invoked by JUNIT, since it is prefixed with "test" and is a public method.
-
testContactTransfer
public void testContactTransfer()
Unit test ofEPPContactTransferCmd
. Verify that relax validation has no impact on contact transfer. The response toEPPContactTransferCmd
isEPPContactTransferResp
.
This test will be invoked by JUNIT, since it is prefixed with "test" and is a public method.
-
setUp
protected void setUp()
JUNITsetUp
method, which sets the default client Id to "theRegistrar" and initializes theEPPContactMapFactory
with theEPPCodec
.- 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 withEPPContactTst
.- Returns:
- Test tests associated with
EPPContactTst
-
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
- command line arguments to the test
-
setNumIterations
public static void setNumIterations(long aNumIterations)
Sets the number of iterations to run per test.- Parameters:
aNumIterations
- number of iterations to run per test
-
-