Class ShrinkNode
java.lang.Object
com.pholser.junit.quickcheck.runner.ShrinkNode
- All Implemented Interfaces:
Comparable<ShrinkNode>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Object[]private final int[]private AssertionErrorprivate final org.junit.runners.model.FrameworkMethodprivate final List<PropertyParameterGenerationContext>private final long[]private final org.junit.runners.model.TestClassprivate final intprivate final BigDecimal -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateShrinkNode(org.junit.runners.model.FrameworkMethod method, org.junit.runners.model.TestClass testClass, List<PropertyParameterGenerationContext> params, Object[] args, long[] seeds, int[] depths, AssertionError failure) -
Method Summary
Modifier and TypeMethodDescription(package private) Object[]args()intcompareTo(ShrinkNode other) private BigDecimal(package private) intdepth()boolean(package private) AssertionErrorfail(AssertionError originalFailure, Object[] originalArgs) inthashCode()(package private) BigDecimalprivate BigDecimalmagnitudeAt(int index) private PropertyVerifierproperty(boolean[] result) (package private) static ShrinkNoderoot(org.junit.runners.model.FrameworkMethod method, org.junit.runners.model.TestClass testClass, List<PropertyParameterGenerationContext> params, Object[] args, long[] seeds, AssertionError failure) private ShrinkNodeshrinkNodeFor(Object shrunk, int index) (package private) List<ShrinkNode>shrinks()(package private) boolean
-
Field Details
-
method
private final org.junit.runners.model.FrameworkMethod method -
testClass
private final org.junit.runners.model.TestClass testClass -
params
-
args
-
seeds
private final long[] seeds -
depths
private final int[] depths -
totalDepth
private final int totalDepth -
totalMagnitude
-
failure
-
-
Constructor Details
-
ShrinkNode
private ShrinkNode(org.junit.runners.model.FrameworkMethod method, org.junit.runners.model.TestClass testClass, List<PropertyParameterGenerationContext> params, Object[] args, long[] seeds, int[] depths, AssertionError failure)
-
-
Method Details
-
root
static ShrinkNode root(org.junit.runners.model.FrameworkMethod method, org.junit.runners.model.TestClass testClass, List<PropertyParameterGenerationContext> params, Object[] args, long[] seeds, AssertionError failure) -
shrinks
List<ShrinkNode> shrinks() -
verifyProperty
- Throws:
Throwable
-
fail
-
args
Object[] args() -
depth
int depth() -
magnitude
BigDecimal magnitude() -
property
private PropertyVerifier property(boolean[] result) throws org.junit.runners.model.InitializationError - Throws:
org.junit.runners.model.InitializationError
-
shrinkNodeFor
-
computeTotalMagnitude
-
magnitudeAt
-
equals
-
hashCode
public int hashCode() -
compareTo
- Specified by:
compareToin interfaceComparable<ShrinkNode>
-