Class ObjectClassRunner

java.lang.Object
org.identityconnectors.contract.test.ContractTestBase
org.identityconnectors.contract.test.ObjectClassRunner
Direct Known Subclasses:
AttributeTests, AuthenticationApiOpTests, CreateApiOpTests, DeleteApiOpTests, GetApiOpTests, MultiOpTests, ResolveUsernameApiOpTests, SearchApiOpTests, SyncApiOpTests, UpdateApiOpTests, UpdateDeltaApiOpTests

public abstract class ObjectClassRunner extends ContractTestBase
Simple base class that will run through all the ObjectClasss.
  • Constructor Details

    • ObjectClassRunner

      public ObjectClassRunner()
  • Method Details

    • testContract

      @ParameterizedTest @MethodSource("objectClasses") public void testContract(ObjectClass objectClass)
      Main contract test entry point, it calls
      invalid reference
      #testRun()
      method in configured number of iterations, runs the iteration only if the operation is supported by the connector
    • testRun

      protected abstract void testRun(ObjectClass objectClass)
      This method will be called configured number of times
    • objectClasses

      protected static Stream<org.junit.jupiter.params.provider.Arguments> objectClasses()
      Return all the base ObjectClasss.
    • getSchema

      public Schema getSchema()
      Need a schema
    • getTestName

      public abstract String getTestName()
      Gets Test name
      Returns:
      Test Name
    • getObjectClassInfo

      public ObjectClassInfo getObjectClassInfo(ObjectClass objectClass)
      Gets ObjectClassInfo for object class returned by
      invalid reference
      ObjectClassRunner#getSupportedObjectClass
      .
      Returns:
      ObjectClassInfo
    • isObjectClassSupported

      public boolean isObjectClassSupported(ObjectClass objectClass)
      Identifier which tells if the tested ObjectClass (get by
      invalid reference
      ObjectClassRunner#objectClass
      is supported by connector or not, supported means that the ObjectClass is included in the Schema
    • getOperationOptionsByOp

      public OperationOptions getOperationOptionsByOp(ObjectClass objectClass, Class<? extends APIOperation> clazz)
      Gets OperationOptions suitable for specified operation. Should be used in all tests requiring OperationOptions unless it's special case.
      Overrides:
      getOperationOptionsByOp in class ContractTestBase
      Returns:
      OperationOptions