public BufferWriterMatcher<T> matching(Function<T, Object> actualProperty, Object expectedValue) { final BufferReaderMatch<T> match = new BufferReaderMatch<>(); match.propertyExtractor = actualProperty; if (expectedValue instanceof Matcher) { match.expectedValueMatcher = (Matcher<?>) expectedValue; } else { match.expectedValue = expectedValue; } propertyMatchers.add(match); return this; }
public BufferReaderMatcher<T> matching(Function<T, Object> actualProperty, Object expectedValue) { final BufferReaderMatch<T> match = new BufferReaderMatch<>(); match.propertyExtractor = actualProperty; if (expectedValue instanceof Matcher) { match.expectedValueMatcher = (Matcher<?>) expectedValue; } else { match.expectedValue = expectedValue; } propertyMatchers.add(match); return this; }
public BufferReaderMatcher<T> matching(Function<T, Object> actualProperty, Object expectedValue) { final BufferReaderMatch<T> match = new BufferReaderMatch<>(); match.propertyExtractor = actualProperty; if (expectedValue instanceof Matcher) { match.expectedValueMatcher = (Matcher<?>) expectedValue; } else { match.expectedValue = expectedValue; } propertyMatchers.add(match); return this; }
public BufferWriterMatcher<T> matching(Function<T, Object> actualProperty, Object expectedValue) { final BufferReaderMatch<T> match = new BufferReaderMatch<>(); match.propertyExtractor = actualProperty; if (expectedValue instanceof Matcher) { match.expectedValueMatcher = (Matcher<?>) expectedValue; } else { match.expectedValue = expectedValue; } propertyMatchers.add(match); return this; }