Class Truth8


  • @Deprecated
    public final class Truth8
    extends java.lang.Object
    Deprecated.
    Instead of this class's methods, use the identical methods declared in the main Truth class. In most cases, you can migrate your whole project mechanically: git grep -l Truth8 | xargs perl -pi -e 's/\bTruth8\b/Truth/g;' Migration is important if you static import assertThat: If you do not migrate, such static imports will become ambiguous in Truth 1.4.2, breaking your build.
    The obsolete entry point for assertions about Java 8 types.
    • Method Detail

      • assertThat

        public static OptionalSubject assertThat​(@Nullable java.util.Optional<?> target)
        Deprecated.
      • assertThat

        public static OptionalIntSubject assertThat​(@Nullable java.util.OptionalInt target)
        Deprecated.
      • assertThat

        public static OptionalLongSubject assertThat​(@Nullable java.util.OptionalLong target)
        Deprecated.
      • assertThat

        public static OptionalDoubleSubject assertThat​(@Nullable java.util.OptionalDouble target)
        Deprecated.
      • assertThat

        public static StreamSubject assertThat​(@Nullable java.util.stream.Stream<?> target)
        Deprecated.
      • assertThat

        public static IntStreamSubject assertThat​(@Nullable java.util.stream.IntStream target)
        Deprecated.
      • assertThat

        public static LongStreamSubject assertThat​(@Nullable java.util.stream.LongStream target)
        Deprecated.
      • assertThat

        @GwtIncompatible
        @J2ObjCIncompatible
        public static PathSubject assertThat​(@Nullable java.nio.file.Path target)
        Deprecated.