Class EPPLoginSecTst
java.lang.Object
junit.framework.Assert
junit.framework.TestCase
com.verisign.epp.codec.loginsec.v1_0.EPPLoginSecTst
- All Implemented Interfaces:
junit.framework.Test
public class EPPLoginSecTst
extends junit.framework.TestCase
Is a unit test of the com.verisign.epp.codec.loginsec.v1_0 package that
includes testing the extentions to the login command and response. The unit
test will execute, gather statistics, and output the results of a test of
each com.verisign.epp.codec.loginsec.v1_0 package concrete extension
EPPCodecComponent's.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidUnit 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 voidsetNumIterations(long aNumIterations) Sets the number of iterations to run per test.protected voidsetUp()JUNITsetUpmethod, which sets the default client Id to "theRegistrar" and initializes theEPPNamestoreExtMapFactorywith theEPPCodec.static junit.framework.Testsuite()JUNITsuitestatic method, which returns the tests associated withEPPLoginSecTst.protected voidtearDown()JUNITtearDown, which currently does nothing.voidUnit test for extending login response with expired password event.voidUnit test for extending login response with expiring password event.voidUnit test for the extension to the login command with long new password.voidUnit test for the extension to the login command with long current password.voidUnit test for the extension to the login command with long current and new password.voidExecute negative tests of using invalid password with the base login command as well as with the login security extension.voidUnit test for extending login response with all login security event types.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
-
Constructor Details
-
EPPLoginSecTst
Creates a new EPPLoginSecTst object.- Parameters:
name- Name of the test
-
-
Method Details
-
testLoginCmdLongPwd
public void testLoginCmdLongPwd()Unit test for the extension to the login command with long current password. -
testLoginCmdLongNewPwd
public void testLoginCmdLongNewPwd()Unit test for the extension to the login command with long new password. -
testLoginCmdLongPwdNewPwd
public void testLoginCmdLongPwdNewPwd()Unit test for the extension to the login command with long current and new password. -
testExpiringPasswordResponse
public void testExpiringPasswordResponse()Unit test for extending login response with expiring password event. -
testExpiredPasswordResponse
public void testExpiredPasswordResponse()Unit test for extending login response with expired password event. -
testWarningAllResponse
public void testWarningAllResponse()Unit test for extending login response with all login security event types. -
testNegativePassword
public void testNegativePassword()Execute negative tests of using invalid password with the base login command as well as with the login security extension. The exact cases include:
- Base login password longer than the 16 character maximum.
- Base login new password longer than the 16 character maximum.
- Login Security Extension with password shorter than the 8 character minimum.
- Login Security Extension new password shorter than the 8 character minimum.
-
setUp
protected void setUp()JUNITsetUpmethod, which sets the default client Id to "theRegistrar" and initializes theEPPNamestoreExtMapFactorywith theEPPCodec.- Overrides:
setUpin classjunit.framework.TestCase
-
tearDown
protected void tearDown()JUNITtearDown, which currently does nothing.- Overrides:
tearDownin classjunit.framework.TestCase
-
suite
public static junit.framework.Test suite()JUNITsuitestatic method, which returns the tests associated withEPPLoginSecTst.- Returns:
- Tests to run
-
main
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- Program arguments
-
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
-