Class AbstractOrderingVisitor

    • Method Detail

      • doWithMatchingDescriptor

        protected <PARENT extends TestDescriptor> void doWithMatchingDescriptor​(java.lang.Class<PARENT> parentTestDescriptorType,
                                                                                TestDescriptor testDescriptor,
                                                                                java.util.function.Consumer<PARENT> action,
                                                                                java.util.function.Function<PARENT,​java.lang.String> errorMessageBuilder)
        Type Parameters:
        PARENT - the parent container type to search in for matching children
      • orderChildrenTestDescriptors

        protected <CHILD extends TestDescriptor,​WRAPPER extends AbstractAnnotatedDescriptorWrapper<?>> void orderChildrenTestDescriptors​(TestDescriptor parentTestDescriptor,
                                                                                                                                               java.lang.Class<CHILD> matchingChildrenType,
                                                                                                                                               java.util.Optional<java.util.function.Consumer<CHILD>> validationAction,
                                                                                                                                               java.util.function.Function<CHILD,​WRAPPER> descriptorWrapperFactory,
                                                                                                                                               AbstractOrderingVisitor.DescriptorWrapperOrderer<?,​WRAPPER> descriptorWrapperOrderer)
        Type Parameters:
        CHILD - the type of children (containers or tests) to order
      • reportWarning

        private void reportWarning​(TestDescriptor parentTestDescriptor,
                                   java.lang.String message)
      • shouldNonMatchingDescriptorsComeBeforeOrderedOnes

        protected abstract boolean shouldNonMatchingDescriptorsComeBeforeOrderedOnes()