aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcpovirk <cpovirk@google.com>2019-06-04 11:58:11 -0700
committerRon Shapiro <shapiro.rd@gmail.com>2019-06-06 11:06:15 -0400
commitf8812e491551920d4c431de33a40173463b427d6 (patch)
tree68d4e29b83c7152d8ec37cc627ab28017e9aebf9
parentce0f5adbba8db44ee4c48bb58b007a3c99d89517 (diff)
downloadjimfs-f8812e491551920d4c431de33a40173463b427d6.tar.gz
Update to Truth 0.45, and address deprecations.
Renames may include: - containsAllOf => containsAtLeast - containsAllIn => containsAtLeastElementsIn - isSameAs => isSameInstanceAs - isOrdered => isInOrder - isStrictlyOrdered => isInStrictOrder The other major change is to change custom subjects to extend raw Subject instead of supplying type parameters. The type parameters are being removed from Subject. This CL will temporarily produce rawtypes warnings, which will go away when I remove the type parameters (as soon as this batch of CLs is submitted). Some CLs in this batch also migrate calls away from actualAsString(). Its literal replacement is `"<" + actual + ">"` (unless an object overrides actualCustomStringRepresentation()), but usually I've made a larger change, such as switching from an old-style "Not true that..." failure message to one generated with the Fact API. In that case, the new code usually contains a direct reference to this.actual (a field that I occasionally had to create). Another larger change I sometimes made is to switch from a manual check-and-fail approach to instead use check(...). And sometimes I just remove a withMessage() call that's no longer necessary now that the code uses check(...), or I introduce a check(...) call. (An assertion made with check(...) automatically includes the actual value from the original subject, so there's no need to set it again with withMessage().) Finally, there's one CL in this batch in which I migrate a Correspondence subclass to instead use Correspondence.from. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=251486146
-rw-r--r--jimfs/src/test/java/com/google/common/jimfs/PathSubject.java2
-rw-r--r--pom.xml2
2 files changed, 2 insertions, 2 deletions
diff --git a/jimfs/src/test/java/com/google/common/jimfs/PathSubject.java b/jimfs/src/test/java/com/google/common/jimfs/PathSubject.java
index f99ba09..5cbe3dd 100644
--- a/jimfs/src/test/java/com/google/common/jimfs/PathSubject.java
+++ b/jimfs/src/test/java/com/google/common/jimfs/PathSubject.java
@@ -43,7 +43,7 @@ import javax.annotation.Nullable;
*
* @author Colin Decker
*/
-public final class PathSubject extends Subject<PathSubject, Path> {
+public final class PathSubject extends Subject {
/** Returns the subject factory for doing assertions on paths. */
public static Subject.Factory<PathSubject, Path> paths() {
diff --git a/pom.xml b/pom.xml
index 468b405..6c0187b 100644
--- a/pom.xml
+++ b/pom.xml
@@ -134,7 +134,7 @@
<dependency>
<groupId>com.google.truth</groupId>
<artifactId>truth</artifactId>
- <version>0.44</version>
+ <version>0.45</version>
<scope>test</scope>
</dependency>
</dependencies>