From 0ff368ca0792ad175202333e77ca9151ada98f0e Mon Sep 17 00:00:00 2001 From: rikkarth Date: Fri, 15 Mar 2024 23:13:21 +0000 Subject: [PATCH] chore(#871-strictMode): corrected small syntax typo in unit test --- .../java/org/json/junit/JSONParserConfigurationTest.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/test/java/org/json/junit/JSONParserConfigurationTest.java b/src/test/java/org/json/junit/JSONParserConfigurationTest.java index e55768f..826b756 100644 --- a/src/test/java/org/json/junit/JSONParserConfigurationTest.java +++ b/src/test/java/org/json/junit/JSONParserConfigurationTest.java @@ -36,10 +36,9 @@ public class JSONParserConfigurationTest { JSONParserConfiguration jsonParserConfiguration = new JSONParserConfiguration() .withStrictMode(true); - strictModeInputTestCases.forEach(testCase -> { - assertThrows("expected non-compliant array but got instead: " + testCase, JSONException.class, - () -> new JSONArray(testCase, jsonParserConfiguration)); - }); + strictModeInputTestCases.forEach( + testCase -> assertThrows("expected non-compliant array but got instead: " + testCase, JSONException.class, + () -> new JSONArray(testCase, jsonParserConfiguration))); } @Test