From f8812e491551920d4c431de33a40173463b427d6 Mon Sep 17 00:00:00 2001 From: cpovirk Date: Tue, 4 Jun 2019 11:58:11 -0700 Subject: 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 --- jimfs/src/test/java/com/google/common/jimfs/PathSubject.java | 2 +- pom.xml | 2 +- 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 { +public final class PathSubject extends Subject { /** Returns the subject factory for doing assertions on paths. */ public static Subject.Factory paths() { diff --git a/pom.xml b/pom.xml index 468b405..6c0187b 100644 --- a/pom.xml +++ b/pom.xml @@ -134,7 +134,7 @@ com.google.truth truth - 0.44 + 0.45 test -- cgit v1.2.3