Skip to content

Releases: approvals/ApprovalTests.Java

Minor bugs with InlineApprovals + changes to StringUtils.split

07 Mar 23:00

Choose a tag to compare

This is mainly fixes to InlineApprovals. But it does contain breaking changes for StringUtils.split().

Breaking changes

StringUtils.split(String, String) no longer trims by default. To maintain previous behavior, call StringUtils.split(String, String, true).
StringUtils.split() now takes a regex as the pattern instead of a simple string.

ParseInputs

26 Feb 19:04
d96b849

Choose a tag to compare

ParseInputs

You can now write tests like

@Test
void testWithTypesTransformersAndBoth()
{
  var expected = """
      1 -> 1
      9 -> 1001
      """;
  ParseInput.from(expected)
    .withTypes(Integer.class)
    .verifyAll(Integer::toBinaryString);
}

Minor enhancements

  • Queryable.of(List) - this is an alias of Queryable.as for consistency with List.of
  • Approvals.verifyAll(List, Formatter) - already had this for arrays but not lists

Updating dependency to jakarta mail

07 Dec 23:16

Choose a tag to compare

Inline reporter detects expected

21 Nov 16:35

Choose a tag to compare

Fixes a minor bug where you have code before expected for inline approvals

InlineJavaReporter uses tab/spaces

20 Nov 19:15

Choose a tag to compare

22.3.1

d updated markdown snippets

inline Approvals

20 Nov 18:23
96d82e0

Choose a tag to compare

TestUtils.displayFile fixed on MacOS

06 Nov 18:48
e649445

Choose a tag to compare

IntellijReporter support for Windows

23 Oct 17:29

Choose a tag to compare

when installed via Jetbrains Toolbox

IntellijReporter support for Linux

16 Oct 17:45
e185feb

Choose a tag to compare

must be installed via toolbox!

Remove deprecated api

12 Oct 22:19

Choose a tag to compare

Minor breaking changes

Issue #376 made javax.mail optional
Removed deprecated api in JupiterApprovals
Moved TestUtils.displayEmail to EmailOpener.displayEmail