public class BlockTestingUtils extends Object
Modifier and Type | Class and Description |
---|---|
static class |
BlockTestingUtils.CheckIterator<T> |
Modifier and Type | Method and Description |
---|---|
static void |
testIndependence(Iterable<? extends AbstractPiece> referenceImpl,
Iterable<? extends AbstractPiece> testImpl)
Tests both the length of the iterator returned by the block, as-well as the deterministic behavior
expected by calling .iterator() against the referenceImpl.
|
static void |
testNestedRepeatBlock(Iterable<? extends AbstractPiece> referenceImpl,
Block block)
Test how the block interacts with a repeatBlock.
|
static int |
testSequential(Iterable<? extends AbstractPiece> referenceImpl,
Iterable<? extends AbstractPiece> testImpl) |
public static int testSequential(Iterable<? extends AbstractPiece> referenceImpl, Iterable<? extends AbstractPiece> testImpl)
public static void testIndependence(Iterable<? extends AbstractPiece> referenceImpl, Iterable<? extends AbstractPiece> testImpl)
referenceImpl
- : A list of pieces in the expected ordertestImpl
- : A list of pieces to test against (the Block)public static void testNestedRepeatBlock(Iterable<? extends AbstractPiece> referenceImpl, Block block)
referenceImpl
- : A list of pieces in the expected orderblock
- : The block to testCopyright © 2011-2020 The Apache Software Foundation. All Rights Reserved.