Algorithms
Algorithms copied to clipboard
Bump com.google.truth:truth from 1.1.5 to 1.4.4
Bumps com.google.truth:truth from 1.1.5 to 1.4.4.
Release notes
Sourced from com.google.truth:truth's releases.
v1.4.4
- Annotated the rest of the main package for nullness, and moved the
@NullMarkedannotation from individual classes up to the package to avoid a warning under--release 8. (e107aeadc)- Improved the failure message for
matchesto conditionally suggest usingcontainsMatch. (7e9fc7aec)1.4.3
Known Issue for at least some builds targeting Java 8, fixed in 1.4.4: "unknown enum constant ElementType.MODULE": google/truth#1320. As far as we know, this is only a warning, so it should cause practical problems only if you use
-Werroror you perform reflection on@NullMarkedunder a Java 8 runtime.
- Added more nullness information to our APIs (in the form of JSpecify annotations). This could lead to additional warnings (or even errors) for users of Kotlin and other nullness checkers. Please report any problems. (ee680cbaf)
- Deprecated
Subject.Factorymethods for Java 8 types. We won't remove them, but you can simplify your code by migrating off them: Just replaceassertAbout(foos()).that(foo)withassertThat(foo)(orabout(foos()).that(foo)withthat(foo)). (59e7a5065)1.4.2
This release is the final step of copying all our methods from
Truth8toTruth. If you have not already migrated your usages fromTruth8toTruth, you may see build errors:OptionalSubjectTest.java:39: error: reference to assertThat is ambiguous assertThat(Optional.of("foo")).isPresent(); ^ both method assertThat(@org.checkerframework.checker.nullness.qual.Nullable Optional<?>) in Truth8 and method assertThat(@org.checkerframework.checker.nullness.qual.Nullable Optional<?>) in Truth matchIn most cases, you can migrate your whole project mechanically:
git grep -l Truth8 | xargs perl -pi -e 's/\bTruth8\b/Truth/g;'. (You can make that change before upgrading to Truth 1.4.2 or as part of the same commit.)If you instead need to migrate your project incrementally (for example, because it is very large), you may want to upgrade your version of Truth incrementally, too, following our instructions for 1.3.0 and 1.4.0.
For help
Please feel welcome to open an issue to report problems or request help.
Changelog
- Removed temporary type parameters from
Truth.assertThat(Stream)andTruth.assertThat(Optional). This can create build errors, which you can fix by replacing all your references toTruth8with references toTruth. (45782bd0e)1.4.1
This release deprecates
Truth8.All its methods have become available on the main
Truthclass. In most cases, you can migrate your whole project mechanically:git grep -l Truth8 | xargs perl -pi -e 's/\bTruth8\b/Truth/g;'While we do not plan to delete
Truth8, we recommend migrating off it, at least if you static importassertThat: If you do not migrate, such static imports will become ambiguous in Truth 1.4.2, breaking your build.1.4.0
In this release, our assertions on Java 8 types continue to move from the
Truth8class to the mainTruthclass. This change should not break compatibility for any supported JDK or Android version, even users who test under old versions of Android without API desugaring. Additionally, we will never break binary compatibility, though some users will have to make changes to their source code in order for it to compile against newer versions.This release is likely to lead to more build failures than 1.3.0 did. However, those failures should be straightforward to fix.
Example build failure
Foo.java:152: error: reference to assertThat is ambiguous assertThat(repo.findFileWithName("foo")).isNull(); </tr></table>
... (truncated)
Commits
ddeaa0cSet version number for truth-parent to 1.4.4.e107aeaAnnotate the rest of the main package (basically just the Java 8 subjects) fo...8ac91a6Document thattruth-java8-extensionis obsolete.99af8beBump org.codehaus.mojo:animal-sniffer-maven-plugin from 1.23 to 1.24 in the d...54e548cBump the dependencies group with 2 updates2183a14Migrate from legacy com.google.gwt to org.gwtproject.7e9fc7aMake StringSubject.matches suggest using containsMatch if matches(x) fails bu...af140d6Fix grammar in Javadoc comments.afda443AnnotateformattingDiffsUsingmethods as supporting nullable element/value ...ee680cbUse JSpecify annotations in the public release.- Additional commits viewable in compare view
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot mergewill merge this PR after your CI passes on it@dependabot squash and mergewill squash and merge this PR after your CI passes on it@dependabot cancel mergewill cancel a previously requested merge and block automerging@dependabot reopenwill reopen this PR if it is closed@dependabot closewill close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency@dependabot ignore this major versionwill close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this minor versionwill close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)