Class CreateApiOpTests


public class CreateApiOpTests extends ObjectClassRunner
Contract test of CreateApiOp operation.
  • Field Details

  • Constructor Details

    • CreateApiOpTests

      public CreateApiOpTests()
  • 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
    • testCreateFailUnsupportedAttribute

      @ParameterizedTest @MethodSource("objectClasses") public void testCreateFailUnsupportedAttribute(ObjectClass objectClass)
      Tests create method with invalid Attribute, RuntimeException is expected connector developers can set the value of unsupported attribute using test property: testsuite.Create.unsupportedAttributeName
    • testCreateWithSameAttributes

      @ParameterizedTest @MethodSource("objectClasses") public void testCreateWithSameAttributes(ObjectClass objectClass)
      Tests create twice with the same attributes. It should return different Uids.
    • getTestName

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