Class EngineExecutionResults

    • Field Detail

      • allEvents

        private final Events allEvents
      • testEvents

        private final Events testEvents
      • containerEvents

        private final Events containerEvents
    • Constructor Detail

      • EngineExecutionResults

        EngineExecutionResults​(java.util.List<Event> events)
        Construct EngineExecutionResults from the supplied list of recorded events.
        Parameters:
        events - the list of events; never null or containing null elements
    • Method Detail

      • containerEvents

        public Events containerEvents()
        Get recorded events for containers.

        In this context, the word "container" applies to TestDescriptors that return true from TestDescriptor.isContainer().

        Since:
        1.6
        See Also:
        allEvents(), testEvents()
      • testEvents

        public Events testEvents()
        Get recorded events for tests.

        In this context, the word "test" applies to TestDescriptors that return true from TestDescriptor.isTest().

        Since:
        1.6
        See Also:
        allEvents(), containerEvents()
      • filterEvents

        private static java.util.stream.Stream<Event> filterEvents​(java.util.List<Event> events,
                                                                   java.util.function.Predicate<? super org.junit.platform.engine.TestDescriptor> predicate)
        Filter the supplied list of events using the supplied predicate.