diff --git a/api/latest/allclasses-index.html b/api/latest/allclasses-index.html index f198323e5..9267267ea 100644 --- a/api/latest/allclasses-index.html +++ b/api/latest/allclasses-index.html @@ -592,8 +592,9 @@
Truth
class.static Subject.Factory<IntStreamSubject,java.util.stream.IntStream>
intStreams()
void
public static Subject.Factory<IntStreamSubject,java.util.stream.IntStream> intStreams()+
+ assertWithMessage(...).about(intStreams()).that(stream)....
. Now, you can perform assertions
+ like that without the about(...)
call.static Subject.Factory<LongStreamSubject,java.util.stream.LongStream>
longStreams()
public static Subject.Factory<LongStreamSubject,java.util.stream.LongStream> longStreams()+
+ assertWithMessage(...).about(longStreams()).that(stream)....
. Now, you can perform assertions
+ like that without the about(...)
call.static Subject.Factory<OptionalDoubleSubject,java.util.OptionalDouble>
optionalDoubles()
public static Subject.Factory<OptionalDoubleSubject,java.util.OptionalDouble> optionalDoubles()+
+ assertWithMessage(...).about(optionalDoubles()).that(optional)....
. Now, you can perform
+ assertions like that without the about(...)
call.static Subject.Factory<OptionalIntSubject,java.util.OptionalInt>
optionalInts()
public static Subject.Factory<OptionalIntSubject,java.util.OptionalInt> optionalInts()+
+ assertWithMessage(...).about(optionalInts()).that(optional)....
. Now, you can perform
+ assertions like that without the about(...)
call.static Subject.Factory<OptionalLongSubject,java.util.OptionalLong>
optionalLongs()
public static Subject.Factory<OptionalLongSubject,java.util.OptionalLong> optionalLongs()+
+ assertWithMessage(...).about(optionalLongs()).that(optional)....
. Now, you can perform
+ assertions like that without the about(...)
call.static Subject.Factory<OptionalSubject,java.util.Optional<?>>
optionals()
public static Subject.Factory<OptionalSubject,java.util.Optional<?>> optionals()+
+ assertWithMessage(...).about(paths()).that(path)....
. Now, you can perform assertions like
+ that without the about(...)
call.static Subject.Factory<PathSubject,java.nio.file.Path>
paths()
public static Subject.Factory<PathSubject,java.nio.file.Path> paths()+
+ assertWithMessage(...).about(intStreams()).that(stream)....
. Now, you can perform assertions
+ like that without the about(...)
call.static Subject.Factory<StreamSubject,java.util.stream.Stream<?>>
streams()
public static Subject.Factory<StreamSubject,java.util.stream.Stream<?>> streams()+
+ assertWithMessage(...).about(streams()).that(stream)....
. Now, you can perform assertions like
+ that without the about(...)
call.public final class Truth8 +@Deprecated +public final class Truth8 extends java.lang.Object
-The primary entry point for assertions about Java 8 types. - -+To use
Truth.assertWithMessage(java.lang.String)
with a Java 8 type, use- assertWithMessage(...).about(
optionals()
).that(...)
- (or similarly for the other types). - -Likewise, to use different failure strategies like
Expect
, use- expect.about(
optionals()
).that(...)
. - -For more information about combining different messages, failure strategies, and subjects, see - How do I specify a custom message/failure - behavior/
Subject
type? in the Truth FAQ.Deprecated. ++Instead of this class's methods, use the identical methods declared in the main ++Truth
class.The obsolete entry point for assertions about Java 8 types.
Modifier and Type | Method | @@ -169,42 +163,58 @@||
---|---|---|---|
static PathSubject |
assertThat(@Nullable java.nio.file.Path target) |
-+ |
+ Deprecated.
+ |
static OptionalSubject |
assertThat(@Nullable java.util.Optional<?> target) |
-+ |
+ Deprecated.
+ |
static OptionalDoubleSubject |
assertThat(@Nullable java.util.OptionalDouble target) |
-+ |
+ Deprecated.
+ |
static OptionalIntSubject |
assertThat(@Nullable java.util.OptionalInt target) |
-+ |
+ Deprecated.
+ |
static OptionalLongSubject |
assertThat(@Nullable java.util.OptionalLong target) |
-+ |
+ Deprecated.
+ |
static IntStreamSubject |
assertThat(@Nullable java.util.stream.IntStream target) |
-+ |
+ Deprecated.
+ |
static LongStreamSubject |
assertThat(@Nullable java.util.stream.LongStream target) |
-+ |
+ Deprecated.
+ |
static StreamSubject |
assertThat(@Nullable java.util.stream.Stream<?> target) |
-+ |
+ Deprecated.
+ |
public static OptionalSubject assertThat(@Nullable java.util.Optional<?> target)+
public static OptionalIntSubject assertThat(@Nullable java.util.OptionalInt target)+
public static OptionalLongSubject assertThat(@Nullable java.util.OptionalLong target)+
public static OptionalDoubleSubject assertThat(@Nullable java.util.OptionalDouble target)+
public static StreamSubject assertThat(@Nullable java.util.stream.Stream<?> target)+
public static IntStreamSubject assertThat(@Nullable java.util.stream.IntStream target)+
public static LongStreamSubject assertThat(@Nullable java.util.stream.LongStream target)+
@GwtIncompatible @J2ObjCIncompatible public static PathSubject assertThat(@Nullable java.nio.file.Path target)+
static IntStreamSubject
assertThat(@Nullable java.util.stream.IntStream target)
IntStreamSubject
static Subject.Factory<IntStreamSubject,java.util.stream.IntStream>
intStreams()
static LongStreamSubject
assertThat(@Nullable java.util.stream.LongStream target)
LongStreamSubject
static Subject.Factory<LongStreamSubject,java.util.stream.LongStream>
longStreams()
static OptionalDoubleSubject
assertThat(@Nullable java.util.OptionalDouble target)
OptionalDoubleSubject
static Subject.Factory<OptionalDoubleSubject,java.util.OptionalDouble>
optionalDoubles()
static OptionalIntSubject
assertThat(@Nullable java.util.OptionalInt target)
OptionalIntSubject
static Subject.Factory<OptionalIntSubject,java.util.OptionalInt>
optionalInts()
static OptionalLongSubject
assertThat(@Nullable java.util.OptionalLong target)
OptionalLongSubject
static Subject.Factory<OptionalLongSubject,java.util.OptionalLong>
optionalLongs()
static OptionalSubject
assertThat(@Nullable java.util.Optional<?> target)
OptionalSubject
static Subject.Factory<OptionalSubject,java.util.Optional<?>>
optionals()
static PathSubject
assertThat(@Nullable java.nio.file.Path target)
PathSubject
static Subject.Factory<PathSubject,java.nio.file.Path>
paths()
static StreamSubject
assertThat(@Nullable java.util.stream.Stream<?> target)
StreamSubject
static Subject.Factory<StreamSubject,java.util.stream.Stream<?>>
streams()
static Subject.Factory<IntStreamSubject,java.util.stream.IntStream>
intStreams()
static Subject.Factory<LongStreamSubject,java.util.stream.LongStream>
longStreams()
static Subject.Factory<OptionalDoubleSubject,java.util.OptionalDouble>
optionalDoubles()
static Subject.Factory<OptionalIntSubject,java.util.OptionalInt>
optionalInts()
static Subject.Factory<OptionalLongSubject,java.util.OptionalLong>
optionalLongs()
static Subject.Factory<OptionalSubject,java.util.Optional<?>>
optionals()
static Subject.Factory<PathSubject,java.nio.file.Path>
paths()
static Subject.Factory<StreamSubject,java.util.stream.Stream<?>>
streams()
static Subject.Factory<TruthFailureSubject,java.lang.AssertionError>
Truth
class.Class | +Description | +
---|---|
com.google.common.truth.Truth8 | +
+ Instead of this class's methods, use the identical methods declared in the main
+
+Truth class. |
+
IntStream
subjects.LongStream
subjects.OptionalDouble
subjects.OptionalInt
subjects.OptionalLong
subjects.Optional
subjects.Path
instances.Stream
subjects.Truth
class.