Class DynamicTestTestDescriptor

    • Field Detail

      • dynamicTest

        private org.junit.jupiter.api.DynamicTest dynamicTest
    • Constructor Detail

      • DynamicTestTestDescriptor

        DynamicTestTestDescriptor​(org.junit.platform.engine.UniqueId uniqueId,
                                  int index,
                                  org.junit.jupiter.api.DynamicTest dynamicTest,
                                  org.junit.platform.engine.TestSource source,
                                  JupiterConfiguration configuration)
    • Method Detail

      • getType

        public org.junit.platform.engine.TestDescriptor.Type getType()
      • after

        public void after​(JupiterEngineExecutionContext context)
                   throws java.lang.Exception
        Avoid an OutOfMemoryError by releasing the reference to this descriptor's DynamicTest which holds a reference to the user-supplied Executable which may potentially consume large amounts of memory on the heap.
        Throws:
        java.lang.Exception
        Since:
        5.5
        See Also:
        Issue 1865