Package org.shredzone.commons.xml
Class NodeListSpliteratorTest
- java.lang.Object
-
- org.shredzone.commons.xml.NodeListSpliteratorTest
-
public class NodeListSpliteratorTest extends Object
Unit tests for theNodeListSpliterator
.- Author:
- Richard "Shred" Körber
-
-
Constructor Summary
Constructors Constructor Description NodeListSpliteratorTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
characteristicsTest()
IsNodeListSpliterator.characteristics()
returning the correct characteristics?void
fullSplitTest()
DoesNodeListSpliterator.trySplit()
split up correctly to the limits?void
init()
Sets up an array of nodes and aNodeList
returning that array.void
simpleTest()
Does theNodeListSpliterator.tryAdvance(java.util.function.Consumer)
return allNodeList
elements, in correct order?void
splitTest()
DoesNodeListSpliterator.trySplit()
split up correctly, leaving two spliterators containing half of theNodeList
each?void
streamTest()
Does theNodeListSpliterator.stream()
method return a stream containing all remaining elements?
-
-
-
Constructor Detail
-
NodeListSpliteratorTest
public NodeListSpliteratorTest()
-
-
Method Detail
-
characteristicsTest
public void characteristicsTest()
IsNodeListSpliterator.characteristics()
returning the correct characteristics?
-
simpleTest
public void simpleTest()
Does theNodeListSpliterator.tryAdvance(java.util.function.Consumer)
return allNodeList
elements, in correct order?
-
splitTest
public void splitTest()
DoesNodeListSpliterator.trySplit()
split up correctly, leaving two spliterators containing half of theNodeList
each?
-
fullSplitTest
public void fullSplitTest()
DoesNodeListSpliterator.trySplit()
split up correctly to the limits?
-
streamTest
public void streamTest()
Does theNodeListSpliterator.stream()
method return a stream containing all remaining elements?
-
-