Class PathSubject

java.lang.Object
com.google.common.truth.Subject
com.google.common.truth.PathSubject

@GwtIncompatible @J2ObjCIncompatible public final class PathSubject extends Subject
A subject for Path values.
Since:
1.3.0 (previously part of truth-java8-extension)
  • Method Details

    • paths

      @Deprecated public static Subject.Factory<PathSubject, Path> paths()
      Deprecated.
      Instead of about(paths()).that(...), use just that(...). Similarly, instead of assertAbout(paths()).that(...), use just assertThat(...).
      Obsolete factory instance. This factory was previously necessary for assertions like assertWithMessage(...).about(paths()).that(path)..... Now, you can perform assertions like that without the about(...) call.