Skip to content

Releases: approvals/ApprovalTests.Java

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

Headers and Labels for Combination and Pairwise Approvals

12 Jan 19:04
e3a9674

Choose a tag to compare

CombinationApprovals.verifyAllCombinations(
    new Labels().withHeader("processCall(String, Int)").withLabels("number", "letter"), this::processCall,
    new Integer[]{1, 2, 3, 4, 5}, new String[]{"a", "b", "c", "d"});

will produce

processCall(String, Int)


[number: 1, letter: a] => [1, a] 
[number: 1, letter: b] => [1, b] 
[number: 1, letter: c] => [1, c] 
[number: 2, letter: a] => [2, a] 
...

closes #194
closes #200

Support the difference in kotlin packages vs directory structure

05 Jan 19:06
a91e020

Choose a tag to compare

PackageSettings allows private constructor

05 Jan 17:50

Choose a tag to compare

FirstWorkingReporter & DateScrubber improvements

15 Dec 18:43

Choose a tag to compare

FirstWorkingReporter now has toString implementation (#140 )
DateScrubber now accepts SimpleDateFormat (closes #165 )