Class AbstractOrderingVisitor<PARENT extends TestDescriptor,CHILD extends TestDescriptor,WRAPPER extends AbstractAnnotatedDescriptorWrapper<?>>
java.lang.Object
org.junit.jupiter.engine.discovery.AbstractOrderingVisitor<PARENT,CHILD,WRAPPER>
- Type Parameters:
PARENT- the parent container type to search in for matching childrenCHILD- the type of children (containers or tests) to orderWRAPPER- the wrapper type for the children to order
- All Implemented Interfaces:
TestDescriptor.Visitor
- Direct Known Subclasses:
ClassOrderingVisitor,MethodOrderingVisitor
abstract class AbstractOrderingVisitor<PARENT extends TestDescriptor,CHILD extends TestDescriptor,WRAPPER extends AbstractAnnotatedDescriptorWrapper<?>>
extends Object
implements TestDescriptor.Visitor
Abstract base class for visitors that
order children nodes.
- Since:
- 5.8
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected classprotected static interface -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddoWithMatchingDescriptor(Class<PARENT> parentTestDescriptorType, TestDescriptor testDescriptor, Consumer<PARENT> action, Function<PARENT, String> errorMessageBuilder) getDescriptorWrapperOrderer(AbstractOrderingVisitor<PARENT, CHILD, WRAPPER>.DescriptorWrapperOrderer inheritedDescriptorWrapperOrderer, AbstractAnnotatedDescriptorWrapper<?> descriptorWrapper) Get theAbstractOrderingVisitor<PARENT extends TestDescriptor,for the suppliedCHILD extends TestDescriptor, WRAPPER extends AbstractAnnotatedDescriptorWrapper<?>>.DescriptorWrapperOrderer AbstractAnnotatedDescriptorWrapper.protected voidorderChildrenTestDescriptors(TestDescriptor parentTestDescriptor, Class<CHILD> matchingChildrenType, Function<CHILD, WRAPPER> descriptorWrapperFactory, AbstractOrderingVisitor<PARENT, CHILD, WRAPPER>.DescriptorWrapperOrderer descriptorWrapperOrderer) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.junit.platform.engine.TestDescriptor.Visitor
visit
-
Field Details
-
logger
-
-
Constructor Details
-
AbstractOrderingVisitor
AbstractOrderingVisitor()
-
-
Method Details
-
doWithMatchingDescriptor
-
orderChildrenTestDescriptors
protected void orderChildrenTestDescriptors(TestDescriptor parentTestDescriptor, Class<CHILD> matchingChildrenType, Function<CHILD, WRAPPER> descriptorWrapperFactory, AbstractOrderingVisitor<PARENT, CHILD, WRAPPER>.DescriptorWrapperOrderer descriptorWrapperOrderer) -
getDescriptorWrapperOrderer
protected AbstractOrderingVisitor<PARENT,CHILD, getDescriptorWrapperOrdererWRAPPER>.DescriptorWrapperOrderer (AbstractOrderingVisitor<PARENT, CHILD, WRAPPER>.DescriptorWrapperOrderer inheritedDescriptorWrapperOrderer, AbstractAnnotatedDescriptorWrapper<?> descriptorWrapper) Get theAbstractOrderingVisitor<PARENT extends TestDescriptor,for the suppliedCHILD extends TestDescriptor, WRAPPER extends AbstractAnnotatedDescriptorWrapper<?>>.DescriptorWrapperOrderer AbstractAnnotatedDescriptorWrapper.The default implementation returns the supplied
DescriptorWrapperOrderer.- Returns:
- a new
DescriptorWrapperOrdereror the one supplied as an argument
-