Class 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 
      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()
      JUNIT setUp method, which sets the default client Id to "theRegistrar" and initializes the EPPNamestoreExtMapFactory with the EPPCodec.
      static junit.framework.Test suite()
      JUNIT suite static method, which returns the tests associated with EPPLoginSecTst.
      protected void tearDown()
      JUNIT tearDown, 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
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • EPPLoginSecTst

        public EPPLoginSecTst​(java.lang.String name)
        Creates a new EPPLoginSecTst object.
        Parameters:
        name - Name of the test
    • 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:
        1. Base login password longer than the 16 character maximum.
        2. Base login new password longer than the 16 character maximum.
        3. Login Security Extension with password shorter than the 8 character minimum.
        4. Login Security Extension new password shorter than the 8 character minimum.
      • setUp

        protected void setUp()
        JUNIT setUp method, which sets the default client Id to "theRegistrar" and initializes the EPPNamestoreExtMapFactory with the EPPCodec.
        Overrides:
        setUp in class junit.framework.TestCase
      • tearDown

        protected void tearDown()
        JUNIT tearDown, which currently does nothing.
        Overrides:
        tearDown in class junit.framework.TestCase
      • suite

        public static junit.framework.Test suite()
        JUNIT suite static method, which returns the tests associated with EPPLoginSecTst.
        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