V - The value type that is tested.@FunctionalInterface public static interface MessageValidation.SimpleExpectation<V> extends MessageValidation.Expectation<V>
| Modifier and Type | Method and Description |
|---|---|
default void |
test(String path,
V value)
Test the expectation at a specific path in the structure.
|
void |
test(V value)
Test the expectation.
|
void test(V value) throws Exception
value - The value to be tested.Exception - On any unmet expectation or other errors.default void test(String path, V value) throws Exception
test in interface MessageValidation.Expectation<V>path - The path to the current location.value - The value to be tested.Exception - On validation failure.Copyright © 2015–2020 morimekta.net. All rights reserved.