Interface TestInstanceFactoryContext

    • Method Detail

      • getTestClass

        Class<?> getTestClass()
        Get the test class for this context.
        the test class to be instantiated; never null
      • getOuterInstance

        Optional<Object> getOuterInstance()
        Get the instance of the outer class, if available.

        The returned Optional will be empty unless the current test class is a @Nested test class.

        an Optional containing the outer test instance; never null but potentially empty
        See Also: