diff --git a/README.md b/README.md index 336f60c..206afbb 100644 --- a/README.md +++ b/README.md @@ -103,6 +103,12 @@ gradlew clean build test gradlew testWithStrictMode ``` +*Optional* Execute the test suite in strict mode with Maven: + +```shell +mvn test -P test-strict-mode +``` + # Notes For more information, please see [NOTES.md](https://github.com/stleary/JSON-java/blob/master/docs/NOTES.md) diff --git a/pom.xml b/pom.xml index fe4f770..80c9b89 100644 --- a/pom.xml +++ b/pom.xml @@ -200,4 +200,55 @@ + + + test-strict-mode + + + + com.google.code.maven-replacer-plugin + replacer + 1.5.3 + + + + enable-strict-mode + process-sources + + replace + + + src/main/java/org/json/JSONParserConfiguration.java + + + // this.strictMode = true; + this.strictMode = true; + + + + + + + restore-original + test + + replace + + + src/main/java/org/json/JSONParserConfiguration.java + + + this.strictMode = true; + // this.strictMode = true; + + + + + + + + + + +