We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
See Funk for resultOfSampling, Sampler and CompletableSample.
public static Matcher<? super T> eventually(Matcher<? super T> matcher) { return new TypeSafeDiagnosingMatcher<T>() { @Override public boolean matchesSafely(T item, Description description) { boolean matchedSuccessfully = resultOfSampling(new Sampler<Boolean>() { @Override public Boolean takeSample() { return matcher.matches(item); } @Override public boolean isComplete(Boolean sample) { return sample; } } if(!matchedSuccessfully) { description.appendText(...); return false; } return true; } @Override public void describeTo(Description description) { description.appendText(...); } } }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
See Funk for resultOfSampling, Sampler and CompletableSample.
The text was updated successfully, but these errors were encountered: