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.TestCaseIs 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 extensionEPPCodecComponent's.
-
-
Constructor Summary
Constructors Constructor Description EPPLoginSecTst(java.lang.String name)Creates a new EPPLoginSecTst object.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static voidmain(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 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.voidtestExpiredPasswordResponse()Unit test for extending login response with expired password event.voidtestExpiringPasswordResponse()Unit test for extending login response with expiring password event.voidtestLoginCmdLongNewPwd()Unit test for the extension to the login command with long new password.voidtestLoginCmdLongPwd()Unit test for the extension to the login command with long current password.voidtestLoginCmdLongPwdNewPwd()Unit test for the extension to the login command with long current and new password.voidtestNegativePassword()Execute negative tests of using invalid password with the base login command as well as with the login security extension.voidtestWarningAllResponse()Unit test for extending login response with all login security event types.-
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
-
-
-
-
Method Detail
-
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
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- 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
-
-