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 orderabstract class AbstractOrderingVisitor<PARENT extends TestDescriptor,CHILD extends TestDescriptor,WRAPPER extends AbstractAnnotatedDescriptorWrapper<?>> extends java.lang.Object implements TestDescriptor.Visitor
| Modifier and Type | Class and Description |
|---|---|
protected class |
AbstractOrderingVisitor.DescriptorWrapperOrderer |
protected static interface |
AbstractOrderingVisitor.MessageGenerator |
| Constructor and Description |
|---|
AbstractOrderingVisitor() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doWithMatchingDescriptor(java.lang.Class<PARENT> parentTestDescriptorType,
TestDescriptor testDescriptor,
java.util.function.Consumer<PARENT> action,
java.util.function.Function<PARENT,java.lang.String> errorMessageBuilder) |
protected AbstractOrderingVisitor.DescriptorWrapperOrderer |
getDescriptorWrapperOrderer(AbstractOrderingVisitor.DescriptorWrapperOrderer inheritedDescriptorWrapperOrderer,
AbstractAnnotatedDescriptorWrapper<?> descriptorWrapper)
Get the
AbstractOrderingVisitor.DescriptorWrapperOrderer for the supplied AbstractAnnotatedDescriptorWrapper. |
protected void |
orderChildrenTestDescriptors(TestDescriptor parentTestDescriptor,
java.lang.Class<CHILD> matchingChildrenType,
java.util.function.Function<CHILD,WRAPPER> descriptorWrapperFactory,
AbstractOrderingVisitor.DescriptorWrapperOrderer descriptorWrapperOrderer) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitvisitprivate static final Logger logger
protected void doWithMatchingDescriptor(java.lang.Class<PARENT> parentTestDescriptorType, TestDescriptor testDescriptor, java.util.function.Consumer<PARENT> action, java.util.function.Function<PARENT,java.lang.String> errorMessageBuilder)
protected void orderChildrenTestDescriptors(TestDescriptor parentTestDescriptor, java.lang.Class<CHILD> matchingChildrenType, java.util.function.Function<CHILD,WRAPPER> descriptorWrapperFactory, AbstractOrderingVisitor.DescriptorWrapperOrderer descriptorWrapperOrderer)
protected AbstractOrderingVisitor.DescriptorWrapperOrderer getDescriptorWrapperOrderer(AbstractOrderingVisitor.DescriptorWrapperOrderer inheritedDescriptorWrapperOrderer, AbstractAnnotatedDescriptorWrapper<?> descriptorWrapper)
AbstractOrderingVisitor.DescriptorWrapperOrderer for the supplied AbstractAnnotatedDescriptorWrapper.
The default implementation returns the supplied DescriptorWrapperOrderer.
DescriptorWrapperOrderer or the one supplied as an argument