From 46c5373470ffeba624e018ed2a8305f5eb7c6746 Mon Sep 17 00:00:00 2001 From: Leonard Ehrenfried Date: Thu, 27 Jun 2024 18:24:44 +0200 Subject: [PATCH] Revert change --- .../org/opentripplanner/test/support/JsonAssertions.java | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/test/java/org/opentripplanner/test/support/JsonAssertions.java b/src/test/java/org/opentripplanner/test/support/JsonAssertions.java index e836ace81fd..1fe87268eee 100644 --- a/src/test/java/org/opentripplanner/test/support/JsonAssertions.java +++ b/src/test/java/org/opentripplanner/test/support/JsonAssertions.java @@ -32,10 +32,11 @@ public static void assertEqualJson(String expected, JsonNode actual) { assertEquals( exp, actualNode, - "Expected '%s' but actual was '%s'".formatted( - JsonSupport.prettyPrint(exp), - JsonSupport.prettyPrint(actualNode) - ) + () -> + "Expected '%s' but actual was '%s'".formatted( + JsonSupport.prettyPrint(exp), + JsonSupport.prettyPrint(actualNode) + ) ); } catch (JsonProcessingException e) { throw new RuntimeException(e);