From 96d531156fe756fcf268092398054b9dc1e2c681 Mon Sep 17 00:00:00 2001 From: Lukas Jungmann Date: Mon, 26 Feb 2024 14:26:21 +0100 Subject: [PATCH] fix cp rights, access of JsonParserImpl, static imports removal Signed-off-by: Lukas Jungmann --- .../customprovider/test/TestProviderTest.java | 5 +- impl/pom.xml | 2 +- .../org/eclipse/parsson/JsonMessages.java | 2 +- .../org/eclipse/parsson/JsonParserImpl.java | 35 +- .../eclipse/parsson/JsonStructureParser.java | 2 +- .../org/eclipse/parsson/messages.properties | 3 +- .../eclipse/parsson/JsonParserFixture.java | 2 +- .../eclipse/parsson/tests/Issue25Test.java | 9 +- .../eclipse/parsson/tests/JsonArrayTest.java | 33 +- .../tests/JsonBigDecimalLengthLimitTest.java | 14 +- .../tests/JsonBigDecimalScaleLimitTest.java | 9 +- .../parsson/tests/JsonBuilderFactoryTest.java | 21 +- .../parsson/tests/JsonBuilderTest.java | 26 +- .../parsson/tests/JsonCollectorTest.java | 13 +- .../parsson/tests/JsonDuplicateKeyTest.java | 31 +- .../eclipse/parsson/tests/JsonFieldTest.java | 38 +- .../tests/JsonGeneratorFactoryTest.java | 7 +- .../parsson/tests/JsonGeneratorTest.java | 69 ++-- .../parsson/tests/JsonMergePatch2Test.java | 31 +- .../parsson/tests/JsonMergePatchDiffTest.java | 19 +- .../parsson/tests/JsonMergePatchTest.java | 19 +- .../parsson/tests/JsonNestingTest.java | 9 +- .../eclipse/parsson/tests/JsonNumberTest.java | 89 ++-- .../eclipse/parsson/tests/JsonObjectTest.java | 100 +++-- .../parsson/tests/JsonParserFactoryTest.java | 2 +- .../parsson/tests/JsonParserSkipTest.java | 115 +++--- .../eclipse/parsson/tests/JsonParserTest.java | 380 +++++++++--------- .../tests/JsonParsingExceptionTest.java | 14 +- .../parsson/tests/JsonPatchBugsTest.java | 9 +- .../parsson/tests/JsonPatchBuilderTest.java | 9 +- .../parsson/tests/JsonPatchDiffTest.java | 19 +- .../parsson/tests/JsonPatchOperationTest.java | 6 +- .../eclipse/parsson/tests/JsonPatchTest.java | 19 +- .../tests/JsonPointerAddOperationTest.java | 9 +- .../parsson/tests/JsonPointerEscapeTest.java | 13 +- .../tests/JsonPointerRemoveOperationTest.java | 9 +- .../JsonPointerReplaceOperationTest.java | 19 +- .../parsson/tests/JsonPointerTest.java | 19 +- .../tests/JsonPointerToStringTest.java | 10 +- .../eclipse/parsson/tests/JsonReaderTest.java | 54 ++- .../parsson/tests/JsonSamplesParsingTest.java | 2 +- .../eclipse/parsson/tests/JsonStringTest.java | 14 +- .../eclipse/parsson/tests/JsonValueTest.java | 32 +- .../eclipse/parsson/tests/JsonWriterTest.java | 40 +- .../eclipse/parsson/tests/RFC7159Test.java | 21 +- .../org/eclipse/parsson/tests/ToJsonTest.java | 13 +- .../parsson/tests/TwitterSearchTest.java | 2 +- pom.xml | 2 +- 48 files changed, 663 insertions(+), 757 deletions(-) diff --git a/demos/customprovider-jdk9/src/test/java/customprovider/test/TestProviderTest.java b/demos/customprovider-jdk9/src/test/java/customprovider/test/TestProviderTest.java index 32dff212..9ea7e613 100644 --- a/demos/customprovider-jdk9/src/test/java/customprovider/test/TestProviderTest.java +++ b/demos/customprovider-jdk9/src/test/java/customprovider/test/TestProviderTest.java @@ -10,12 +10,11 @@ package customprovider.test; -import static org.junit.jupiter.api.Assertions.assertInstanceOf; - import jakarta.json.Json; import jakarta.json.stream.JsonGenerator; import org.eclipse.parsson.demos.customprovider.TestGenerator; +import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; /** @@ -27,7 +26,7 @@ public class TestProviderTest { @Test void hello() { try (JsonGenerator generator = Json.createGenerator(System.out)) { - assertInstanceOf(TestGenerator.class, generator, "TestGenerator is not picked up"); + Assertions.assertInstanceOf(TestGenerator.class, generator, "TestGenerator is not picked up"); generator.writeStartArray().writeEnd(); } System.out.println(); diff --git a/impl/pom.xml b/impl/pom.xml index ddc698bd..110440e2 100644 --- a/impl/pom.xml +++ b/impl/pom.xml @@ -1,7 +1,7 @@