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 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 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 theEPPNamestoreExtMapFactory
with theEPPCodec
.static junit.framework.Test
suite()
JUNITsuite
static method, which returns the tests associated withEPPLoginSecTst
.protected void
tearDown()
JUNITtearDown
, which currently does nothing.void
testExpiredPasswordResponse()
Unit test for extending login response with expired password event.void
testExpiringPasswordResponse()
Unit test for extending login response with expiring password event.void
testLoginCmdLongNewPwd()
Unit test for the extension to the login command with long new password.void
testLoginCmdLongPwd()
Unit test for the extension to the login command with long current password.void
testLoginCmdLongPwdNewPwd()
Unit test for the extension to the login command with long current and new password.void
testNegativePassword()
Execute negative tests of using invalid password with the base login command as well as with the login security extension.void
testWarningAllResponse()
Unit 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
-
-
-
-
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()
JUNITsetUp
method, which sets the default client Id to "theRegistrar" and initializes theEPPNamestoreExtMapFactory
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 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
-
-