Class SyncApiOpTests


public class SyncApiOpTests extends ObjectClassRunner
Contract test of SyncApiOp.
  • Field Details

  • Constructor Details

    • SyncApiOpTests

      public SyncApiOpTests()
  • Method Details

    • getAPIOperations

      public 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.
      Specified by:
      getAPIOperations in class ContractTestBase
    • testRun

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

      @ParameterizedTest @MethodSource("objectClasses") public void testSyncWithoutAttrsToGet(ObjectClass objectClass)
      Test Sync without attrsToGet.
    • testLatestSyncToken

      @ParameterizedTest @MethodSource("objectClasses") public void testLatestSyncToken(ObjectClass objectClass)
      Tests that SyncApiOp.getLatestSyncToken(ObjectClass) returns really the latest sync token which is available.
    • getTestName

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

      protected static boolean canSyncAfterOp(Class<? extends APIOperation> operation)
      Returns true if tests are configured to test connector's sync after specified operation. Some connectors implement sync but are not capable to sync all changes' types.