T - Type of validating recordpublic static class TestDataMatchers.MultipleSplitDataMatcher<T> extends org.hamcrest.TypeSafeDiagnosingMatcher<Iterator<T>>
Each collection has a pointer (iterator) pointing to current checking record. When a record is received in the stream, it will be compared to all current pointing records in collections, and the pointer to the identical record will move forward.
If the stream preserves the correctness and order of records in all splits, all pointers should reach the end of the collection finally.
| Constructor and Description |
|---|
MultipleSplitDataMatcher(Collection<Collection<T>> testDataCollections) |
| Modifier and Type | Method and Description |
|---|---|
void |
describeTo(org.hamcrest.Description description) |
protected boolean |
matchesSafely(Iterator<T> resultIterator,
org.hamcrest.Description description) |
public MultipleSplitDataMatcher(Collection<Collection<T>> testDataCollections)
Copyright © 2014–2021 The Apache Software Foundation. All rights reserved.