Interface TestInstancePostProcessor

    • Method Detail

      • postProcessTestInstance

        void postProcessTestInstance​(Object testInstance,
                                     ExtensionContext context)
                              throws Exception
        Callback for post-processing the supplied test instance.

        Note: the ExtensionContext supplied to a TestInstancePostProcessor will always return an empty Optional value from getTestInstance(). A TestInstancePostProcessor should therefore only attempt to process the supplied testInstance.

        Parameters:
        testInstance - the instance to post-process; never null
        context - the current extension context; never null
        Throws:
        Exception