Class PathSubject
java.lang.Object
com.google.common.truth.Subject
com.google.common.truth.PathSubject
A subject for
Path values.
This subject does not currently add any assertions to the ones inherited from Subject.
A future version may. Meanwhile, we do at least need to have Truth.assertThat(Path)
because otherwise assertThat(path) would not compile: it would be ambiguous because
Path extends both Comparable and Iterable.
- Since:
- 1.3.0 (previously part of
truth-java8-extension)
-
Nested Class Summary
Nested classes/interfaces inherited from class com.google.common.truth.Subject
Subject.Factory<SubjectT extends Subject, ActualT> -
Method Summary
Methods inherited from class com.google.common.truth.Subject
actualCustomStringRepresentation, check, equals, failWithActual, failWithActual, failWithoutActual, hashCode, ignoreCheck, isAnyOf, isEqualTo, isIn, isInstanceOf, isNoneOf, isNotEqualTo, isNotIn, isNotInstanceOf, isNotNull, isNotSameInstanceAs, isNull, isSameInstanceAs, toString
-
Method Details
-
paths
Deprecated.Instead ofabout(paths()).that(...), use justthat(...). Similarly, instead ofassertAbout(paths()).that(...), use justassertThat(...).Obsolete factory instance. This factory was previously necessary for assertions likeassertWithMessage(...).about(paths()).that(path)..... Now, you can perform assertions like that without theabout(...)call.
-
about(paths()).that(...), use justthat(...).