Skip to content

Bump com.google.truth:truth from 1.3.0 to 1.4.5 - #3

Merged
abashev merged 2 commits into
mainfrom
dependabot/maven/main/com.google.truth-truth-1.4.5
Sep 25, 2026
Merged

abashev merged 2 commits into
mainfrom
dependabot/maven/main/com.google.truth-truth-1.4.5

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Sep 25, 2026 •

Copy link
Copy Markdown

Bumps com.google.truth:truth from 1.3.0 to 1.4.5.

Release notes

Sourced from com.google.truth:truth's releases.

1.4.5

  • Changed assertions like assertThat(nullMap).isEmpty() to fail with a useful failure message instead of throwing NullPointerException (and similarly for other "bogus" values, such as negative sizes). (da5d6e96f)
  • Made Kotlin's isInstanceOf(Int::class.java) (and Java's isInstanceOf(int.class)) a valid way to check for Int/Integer instances. (974ef195b)
  • Improved isWithin to pretty-print numbers in its failure messages. (de785536d, 07318c23e)
  • Improved some assertions that print class names to print simpler names (e.g., Integer instead of java.lang.Integer). (0ba72d60fdb384aa97da03e2403a6757f63bf129)
  • Changed ExpectFailure to never generate "value of" lines based on bytecode. This slightly simplifies writing new tests with ExpectFailure and prevents future behavior changes in some ExpectFailure tests that already exist. However, it may also require changes to other existing ExpectFailure tests to remove or change any assertions about the "value of" line. (3caa0e845)
  • Our Android minSdkVersion is now 23 (Marshmallow). This follows the minimum of Google's foundational Android libraries, and we expect it to have no practical impact on users. (c85c75cf4)
  • Changed our GWT/J2CL artifact to omit usages of @NullMarked. This was making all our types non-null in those environments, since we don't yet use @Nullable in the GWT/J2CL artifact. (6392d37e7)

v1.4.4

  • Annotated the rest of the main package for nullness, and moved the @NullMarked annotation from individual classes up to the package to avoid a warning under --release 8. (e107aeadc)
  • Improved the failure message for matches to conditionally suggest using containsMatch. (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 -Werror or you perform reflection on @NullMarked under 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.Factory methods for Java 8 types. We won't remove them, but you can simplify your code by migrating off them: Just replace assertAbout(foos()).that(foo) with assertThat(foo) (or about(foos()).that(foo) with that(foo)). (59e7a5065)

1.4.2

This release is the final step of copying all our methods from Truth8 to Truth. If you have not already migrated your usages from Truth8 to Truth, 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 match

In 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) and Truth.assertThat(Optional). This can create build errors, which you can fix by replacing all your references to Truth8 with references to Truth. (45782bd0e)

1.4.1

This release deprecates Truth8.

All its methods have become available on the main Truth class. 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 import assertThat: If you do not migrate, such static imports become ambiguous in Truth 1.4.2, breaking your build.

1.4.0

... (truncated)

Commits
  • 0c43ea0 Set version number for truth-parent to 1.4.5.
  • 24b5a31 Fix TODO style.
  • 7261f72 Make ActualValueInference see through casts and also recognize some of Kotl...
  • 3caa0e8 In ExpectFailure, never generate "value of" lines based on bytecode.
  • a29e1b2 Attempt to fix Javadoc snapshots:
  • 3a0cf9a Bump the github-actions group with 2 updates
  • 3053945 Use the standard parameter name ("expected") in MultimapSubject.isEqualTo.
  • 079b919 Add a TODO to containsNoDuplicates.
  • b515e71 Show only the duplicate keys in the exception message, not all keys.
  • 534518e Don't bother to explicitly set [publishingServerId](https://central.sonatyp...
  • Additional commits viewable in compare view

@dependabot dependabot Bot added dependencies Pull requests that update a dependency file java Pull requests that update java code labels Sep 25, 2026
Bumps [com.google.truth:truth](https://github.com/google/truth) from 1.3.0 to 1.4.5.
- [Release notes](https://github.com/google/truth/releases)
- [Commits](google/truth@v1.3.0...v1.4.5)

---
updated-dependencies:
- dependency-name: com.google.truth:truth
  dependency-version: 1.4.5
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot
dependabot Bot force-pushed the dependabot/maven/main/com.google.truth-truth-1.4.5 branch from b2270d8 to adeff01 Compare September 25, 2026 20:59
@abashev
abashev enabled auto-merge (squash) September 25, 2026 20:59
@abashev
abashev merged commit 90b49a5 into main Sep 25, 2026
8 checks passed
@abashev
abashev deleted the dependabot/maven/main/com.google.truth-truth-1.4.5 branch September 25, 2026 21:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file java Pull requests that update java code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant