Skip to content

Releases: approvals/ApprovalTests.Java

Breaking Change: Removing obsolete features

12 Mar 21:41

Choose a tag to compare

Removed:

  • LegacyApprovals
  • MethodExecutionPath
  • ObjectUtils.move()

These classes are obsolete since Java 8. Instead use CombinationApprovals and Java lambdas.

It is hard to know what is obsolete on a public API with no telemetry. If you feel we have made an important error, please reach out.

Breaking Change: move SQL approvals to SqlApprovals

26 Feb 21:45

Choose a tag to compare

We have moved SQL-specific APIs from Approvals to a separate class, SqlApprovals.

This will break the following calls:

- Approvals.verify(ResultSet)
+ SqlApprovals.verify(ResultSet)
- Approvals.verify(SqlLoader)
+ SqlApprovals.verify(SqlLoader)

No behavior change; only the entry point moved.

We did this for compatibility with Java Modules (JPMS).

Removed deprecated methods from Approvals.java

19 Feb 22:42

Choose a tag to compare

28.0.0

. d reformatted code and updated markdown snippets

Breaking change to reporter names

12 Feb 23:17

Choose a tag to compare

This update is moving to a unified reporter generation. Its purpose is to keep the diff tools more up-to-date and consistent across languages. Most of the reporters names have changed.

For example:
Old: BeyondCompareReporter
New: ReportWithBeyondCompare

This naming pattern helps with discoverability when using autocomplete.

Why we changed reporters

Fix NullPointerException for null Instant in JSON serialization

06 Feb 18:08

Choose a tag to compare

Bug Fixes

Fixed NullPointerException in JsonUtils.InstantAdapter when serializing objects with null Instant fields via JsonApprovals.verifyAsJson(). The adapter now correctly writes a JSON null value, matching the existing behavior of LocalDateTimeAdapter. (#765, #766)

verify(java.nio.file.Path)

05 Feb 21:43

Choose a tag to compare

26.7.0

. d reformatted code and updated markdown snippets

Better help message for DateScrubber

29 Jan 21:53

Choose a tag to compare

26.6.1

. d reformatted code and updated markdown snippets

Fixed name of ExtensionFileFilter class

22 Jan 22:53

Choose a tag to compare

Fixed a speling mistake

DateScrubber supports more dates

19 Jan 18:21

Choose a tag to compare

This addresses the requests from @thomo (timezone offsets) and @thunderhook (LocalDateTime without Z).

Added the ability to add known text file extensions

15 Jan 21:49

Choose a tag to compare