public class Corollaries
extends org.junit.runners.BlockJUnit4ClassRunner
Assumes
of its Test
sModifier and Type | Field and Description |
---|---|
private java.util.List<org.junit.runners.model.FrameworkMethod> |
fFilteredChildren |
private org.junit.runners.model.RunnerScheduler |
fScheduler |
private org.junit.runner.manipulation.Sorter |
fSorter |
Constructor and Description |
---|
Corollaries(java.lang.Class<?> klass)
Creates a BlockJUnit4ClassRunner to run
klass |
Modifier and Type | Method and Description |
---|---|
private void |
assumptionSort(java.util.List<org.junit.runners.model.FrameworkMethod> methods) |
protected org.junit.runners.model.Statement |
childrenInvoker(org.junit.runner.notification.RunNotifier notifier)
Returns a
Statement : Call BlockJUnit4ClassRunner.runChild(Object, RunNotifier)
on each object returned by BlockJUnit4ClassRunner.getChildren() (subject to any imposed
filter and sort) |
private java.util.Comparator<? super org.junit.runners.model.FrameworkMethod> |
comparator() |
void |
filter(org.junit.runner.manipulation.Filter filter) |
org.junit.runner.Description |
getDescription() |
private java.util.List<org.junit.runners.model.FrameworkMethod> |
getFilteredChildren() |
protected void |
runChild(org.junit.runners.model.FrameworkMethod method,
org.junit.runner.notification.RunNotifier notifier) |
protected void |
runChild(org.junit.runners.model.FrameworkMethod method,
org.junit.runner.notification.RunNotifier notifier,
java.util.Set<java.lang.String> invalidAssumptions) |
private void |
runChildren(org.junit.runner.notification.RunNotifier notifier,
java.util.Set<java.lang.String> invalidAssumptions) |
void |
setScheduler(org.junit.runners.model.RunnerScheduler scheduler)
Sets a scheduler that determines the order and parallelization
of children.
|
private boolean |
shouldRun(org.junit.runner.manipulation.Filter filter,
org.junit.runners.model.FrameworkMethod each) |
void |
sort(org.junit.runner.manipulation.Sorter sorter) |
private void |
sortChild(org.junit.runners.model.FrameworkMethod child) |
collectInitializationErrors, computeTestMethods, createTest, describeChild, getChildren, getTestRules, methodBlock, methodInvoker, possiblyExpectingExceptions, rules, testName, validateConstructor, validateInstanceMethods, validateNoNonStaticInnerClass, validateOnlyOneConstructor, validateTestMethods, validateZeroArgConstructor, withAfters, withBefores, withPotentialTimeout
private org.junit.runner.manipulation.Sorter fSorter
private java.util.List<org.junit.runners.model.FrameworkMethod> fFilteredChildren
private org.junit.runners.model.RunnerScheduler fScheduler
public Corollaries(java.lang.Class<?> klass) throws org.junit.runners.model.InitializationError
klass
org.junit.runners.model.InitializationError
- if the test class is malformed.public void sort(org.junit.runner.manipulation.Sorter sorter)
sort
in interface org.junit.runner.manipulation.Sortable
sort
in class org.junit.runners.ParentRunner<org.junit.runners.model.FrameworkMethod>
private void sortChild(org.junit.runners.model.FrameworkMethod child)
private java.util.Comparator<? super org.junit.runners.model.FrameworkMethod> comparator()
protected org.junit.runners.model.Statement childrenInvoker(org.junit.runner.notification.RunNotifier notifier)
Statement
: Call BlockJUnit4ClassRunner.runChild(Object, RunNotifier)
on each object returned by BlockJUnit4ClassRunner.getChildren()
(subject to any imposed
filter and sort)childrenInvoker
in class org.junit.runners.ParentRunner<org.junit.runners.model.FrameworkMethod>
private void runChildren(org.junit.runner.notification.RunNotifier notifier, java.util.Set<java.lang.String> invalidAssumptions)
protected void runChild(org.junit.runners.model.FrameworkMethod method, org.junit.runner.notification.RunNotifier notifier, java.util.Set<java.lang.String> invalidAssumptions)
protected final void runChild(org.junit.runners.model.FrameworkMethod method, org.junit.runner.notification.RunNotifier notifier)
runChild
in class org.junit.runners.BlockJUnit4ClassRunner
private java.util.List<org.junit.runners.model.FrameworkMethod> getFilteredChildren()
private void assumptionSort(java.util.List<org.junit.runners.model.FrameworkMethod> methods)
public org.junit.runner.Description getDescription()
getDescription
in interface org.junit.runner.Describable
getDescription
in class org.junit.runners.ParentRunner<org.junit.runners.model.FrameworkMethod>
public void filter(org.junit.runner.manipulation.Filter filter) throws org.junit.runner.manipulation.NoTestsRemainException
filter
in interface org.junit.runner.manipulation.Filterable
filter
in class org.junit.runners.ParentRunner<org.junit.runners.model.FrameworkMethod>
org.junit.runner.manipulation.NoTestsRemainException
private boolean shouldRun(org.junit.runner.manipulation.Filter filter, org.junit.runners.model.FrameworkMethod each)
public void setScheduler(org.junit.runners.model.RunnerScheduler scheduler)
setScheduler
in class org.junit.runners.ParentRunner<org.junit.runners.model.FrameworkMethod>