/** * Applies an {@link AssertRelation} to check the provided relation against the value of this * assert and the provided expected value. * * <p>Returns this {@code SingletonAssert}. */ private PCollectionViewAssert<ElemT, ViewT> satisfies( AssertRelation<ViewT, ViewT> relation, final ViewT expectedValue) { return satisfies(new CheckRelationAgainstExpected<>(relation, expectedValue, coder)); }
private PCollectionSingletonIterableAssert<T> satisfies( AssertRelation<Iterable<T>, Iterable<T>> relation, Iterable<T> expectedElements) { return satisfies( new CheckRelationAgainstExpected<>( relation, expectedElements, IterableCoder.of(elementCoder))); } }
/** * Applies a {@link SerializableFunction} to check the elements of the {@code Iterable}. * * <p>Returns this {@code IterableAssert}. */ private PCollectionContentsAssert<T> satisfies( AssertRelation<Iterable<T>, Iterable<T>> relation, Iterable<T> expectedElements) { return satisfies( new CheckRelationAgainstExpected<>( relation, expectedElements, IterableCoder.of(actual.getCoder()))); }