Class PathSubject


  • @GwtIncompatible
    @J2ObjCIncompatible
    public final class PathSubject
    extends Subject
    Assertions for Path instances.
    Since:
    1.3.0 (previously part of truth-java8-extension)
    • Method Detail

      • paths

        @Deprecated
        public static Subject.Factory<PathSubject,​java.nio.file.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(intStreams()).that(stream)..... Now, you can perform assertions like that without the about(...) call.