Package com.remondis.propertypath.api
Class AssertGetter
- java.lang.Object
-
- com.remondis.propertypath.api.AssertGetter
-
public class AssertGetter extends java.lang.ObjectThis is the testing API of the Property Path library. The API can be used to assert a specific property path. If the expected property path and all containing arguments equal the actual property path and arguments of a givenGetinstance, the test assert will succeed, otherwise anAssertionErroris thrown with a message explaining the differences.
-
-
Constructor Summary
Constructors Constructor Description AssertGetter()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <I,O,E extends java.lang.Exception>
AssertGetterBuilder<I,O,E>of(Get<I,O,E> getter)Creates a new builder to assert the property path of a specifiedGetinstance.static <I,O,T,E extends java.lang.Exception>
AssertGetterAndApplyBuilder<I,O,T,E>of(GetAndApply<I,O,T,E> getter)Creates a new builder to assert the property path of a specifiedGetinstance.
-
-
-
Method Detail
-
of
public static <I,O,E extends java.lang.Exception> AssertGetterBuilder<I,O,E> of(Get<I,O,E> getter)
Creates a new builder to assert the property path of a specifiedGetinstance.- Parameters:
getter- TheGetinstance under test.- Returns:
- Returns a builder for further configuration.
-
of
public static <I,O,T,E extends java.lang.Exception> AssertGetterAndApplyBuilder<I,O,T,E> of(GetAndApply<I,O,T,E> getter)
Creates a new builder to assert the property path of a specifiedGetinstance.- Parameters:
getter- TheGetinstance under test.- Returns:
- Returns a builder for further configuration.
-
-