Class AuthenticationApiOpTests


public class AuthenticationApiOpTests extends ObjectClassRunner
Contract test of AuthenticationApiOp.
  • Field Details

  • Constructor Details

    • AuthenticationApiOpTests

      public AuthenticationApiOpTests()
  • Method Details

    • getAPIOperations

      public Set<Class<? extends APIOperation>> getAPIOperations()
      Description copied from class: ContractTestBase
      Ask the subclasses for the APIOperation. Method returns set of required API operations that are prerequisites for running certain contract test.
      Specified by:
      getAPIOperations in class ContractTestBase
    • testRun

      public void testRun(ObjectClass objectClass)
      This method will be called configured number of times
      Specified by:
      testRun in class ObjectClassRunner
    • testOpEnable

      @ParameterizedTest @MethodSource("objectClasses") public void testOpEnable(ObjectClass objectClass)
      Tests that disabled user cannot authenticate. RuntimeException should be thrown.
    • testOpPasswordExpirationDate

      @ParameterizedTest @MethodSource("objectClasses") public void testOpPasswordExpirationDate(ObjectClass objectClass)
      Tests that PasswordExpiredException is thrown in case PasswordExpirationDate is set to today.
    • testOpPasswordExpired

      @ParameterizedTest @MethodSource("objectClasses") public void testOpPasswordExpired(ObjectClass objectClass)
      Tests that PasswordExpiredException is thrown in case PasswordExpired is updated to true.
    • testPasswordBeforePasswordExpired

      @ParameterizedTest @MethodSource("objectClasses") public void testPasswordBeforePasswordExpired(ObjectClass objectClass)
      Tests that connector respects order of PASSWORD and PASSWORD_EXPIRED attributes during update. PASSWORD should be performed before PASSWORD_EXPIRED.
    • getTestName

      public String getTestName()
      Gets Test name
      Specified by:
      getTestName in class ObjectClassRunner
      Returns:
      Test Name