T
- Type of validating recordpublic static class TestDataMatchers.MultipleSplitDataMatcher<T> extends org.hamcrest.TypeSafeDiagnosingMatcher<Iterator<T>>
Each list 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 lists, 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 list finally.
Constructor and Description |
---|
MultipleSplitDataMatcher(List<List<T>> testData) |
Modifier and Type | Method and Description |
---|---|
void |
describeTo(org.hamcrest.Description description) |
protected boolean |
matchesSafely(Iterator<T> resultIterator,
org.hamcrest.Description description) |
Copyright © 2014–2023 The Apache Software Foundation. All rights reserved.