Class DeleteOperationTest

    • Constructor Detail

      • DeleteOperationTest

        protected DeleteOperationTest​(String objectTypeId)
        Creates an instance of an operation test.

        Intended to be used as part of a Parameterized test but can be run as a single test instance by invoking this constructor from the no argument constructor of the implementing class.

        Parameters:
        objectTypeId - object type id under test
      • DeleteOperationTest

        protected DeleteOperationTest​(String objectTypeId,
                                      OptionalTestInput optionalTestInput)
        Creates an instance of an operation test.

        Intended to be used as part of a Parameterized test but can be run as a single test instance by invoking this constructor from the no argument constructor of the implementing class.

        Parameters:
        objectTypeId - object type id under test
        optionalTestInput - optional input for the test
    • Method Detail

      • createTemporaryObjectForDeletion

        protected final String createTemporaryObjectForDeletion​(InputStream input,
                                                                String xpathToId)
        Helper method to create a new object and return its id.

        Currently only supports create operations that return an xml payload containing the id

        Parameters:
        input - input for the create operation
        xpathToId - xpath expression for the id in the response xml of the create operation
        Returns:
        the id of the newly created object
      • getObjectId

        protected abstract String getObjectId()
        Abstraction to allow ids to be created as part of each test.

        This must be overridden to return the id for the current object

        Returns:
        the id of the object to be deleted