mirror of
https://github.com/stleary/JSON-java.git
synced 2025-10-02 15:08:19 -04:00
chore(#871-strictMode): corrected small syntax typo in unit test
This commit is contained in:
@@ -36,10 +36,9 @@ public class JSONParserConfigurationTest {
|
|||||||
JSONParserConfiguration jsonParserConfiguration = new JSONParserConfiguration()
|
JSONParserConfiguration jsonParserConfiguration = new JSONParserConfiguration()
|
||||||
.withStrictMode(true);
|
.withStrictMode(true);
|
||||||
|
|
||||||
strictModeInputTestCases.forEach(testCase -> {
|
strictModeInputTestCases.forEach(
|
||||||
assertThrows("expected non-compliant array but got instead: " + testCase, JSONException.class,
|
testCase -> assertThrows("expected non-compliant array but got instead: " + testCase, JSONException.class,
|
||||||
() -> new JSONArray(testCase, jsonParserConfiguration));
|
() -> new JSONArray(testCase, jsonParserConfiguration)));
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
Reference in New Issue
Block a user