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