Releases: approvals/ApprovalTests.Java
Releases · approvals/ApprovalTests.Java
23.0.1
Minor bugs with InlineApprovals + changes to StringUtils.split
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
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 withList.of
Approvals.verifyAll(List, Formatter)
- already had this for arrays but not lists
Updating dependency to jakarta mail
Closes issue #376
Inline reporter detects expected
Fixes a minor bug where you have code before expected for inline approvals
InlineJavaReporter uses tab/spaces
22.3.1 d updated markdown snippets
inline Approvals
TestUtils.displayFile fixed on MacOS
as reported in #429
IntellijReporter support for Windows
when installed via Jetbrains Toolbox
IntellijReporter support for Linux
must be installed via toolbox!