Class ContractTestBase

java.lang.Object
org.identityconnectors.contract.test.ContractTestBase
Direct Known Subclasses:
DiscoverConfigurationApiOpTests, ObjectClassRunner, SchemaApiOpTests, ScriptOnConnectorApiOpTests, ScriptOnResourceApiOpTests, TestApiOpTests, ValidateApiOpTests

public abstract class ContractTestBase extends Object
Base class of all contract tests.
Author:
Zdenek Louzensky
  • Field Details

  • Constructor Details

    • ContractTestBase

      public ContractTestBase()
  • Method Details

    • init

      @BeforeEach public void init()
      Initialize the environment needed to run the test. Called once per test method (@Before).
    • dispose

      @AfterEach public void dispose()
      Dispose the test environment, do the cleanup. Called once per test method (@After).
    • getAPIOperations

      public abstract Set<Class<? extends APIOperation>> getAPIOperations()
      Ask the subclasses for the APIOperation. Method returns set of required API operations that are prerequisites for running certain contract test.
    • getDataProvider

      public static DataProvider getDataProvider()
      Gets preconfigured DataProvider instance
      Returns:
      DataProvider
    • getConnectorFacade

      public ConnectorFacade getConnectorFacade()
      Always need a ConnectorFacade.
    • 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.
      Returns:
      OperationOptions