Value - The value type being validated.public static final class MessageValidation.PredicateExpectation<Value> extends Object implements MessageValidation.SimpleExpectation<Value>
| Constructor and Description |
|---|
PredicateExpectation(Predicate<Value> predicate,
String failureMessage)
Create a predicate based expectation.
|
| Modifier and Type | Method and Description |
|---|---|
void |
test(Value value)
Test the value.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waittestpublic PredicateExpectation(Predicate<Value> predicate, String failureMessage)
IllegalStateException if not.predicate - The value predicate.failureMessage - The message of the thrown exception.public void test(Value value)
test in interface MessageValidation.SimpleExpectation<Value>value - The value to test.IllegalStateException - if the value does not meet the predicate expectation.Copyright © 2015–2020 morimekta.net. All rights reserved.