public IsPojo where()

in pojo/src/main/java/com/spotify/hamcrest/pojo/IsPojo.java [62:73]


  public <T> IsPojo<A> where(final String methodName, final Matcher<T> returnValueMatcher) {
    return where(
        methodName,
        self -> {
          final Method method = methodWithName(methodName, self);
          method.setAccessible(true);
          @SuppressWarnings("unchecked")
          final T returnValue = (T) method.invoke(self);
          return returnValue;
        },
        returnValueMatcher);
  }