Class AssertGetter


  • public class AssertGetter
    extends java.lang.Object
    This 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 given Get instance, the test assert will succeed, otherwise an AssertionError is 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 specified Get instance.
      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 specified Get instance.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • AssertGetter

        public AssertGetter()
    • 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 specified Get instance.
        Parameters:
        getter - The Get instance 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 specified Get instance.
        Parameters:
        getter - The Get instance under test.
        Returns:
        Returns a builder for further configuration.