From 4b21166e2999c4fe4c0e402aeabe2a90045cc3ad Mon Sep 17 00:00:00 2001 From: Nicolas Ayral Seydoux Date: Mon, 15 Apr 2024 11:40:37 +0200 Subject: [PATCH 1/6] JCL-402: Test against jackson and jsonb #Veuillez saisir le message de validation pour vos modifications. Les lignes --- solid/pom.xml | 82 ++++++++++++++++++++++++++++++++++++++++++++++++--- 1 file changed, 78 insertions(+), 4 deletions(-) diff --git a/solid/pom.xml b/solid/pom.xml index 3be4e20184b..e6678461908 100644 --- a/solid/pom.xml +++ b/solid/pom.xml @@ -85,6 +85,18 @@ ${project.version} test + + com.inrupt.client + inrupt-client-jsonb + ${project.version} + test + + + org.eclipse + yasson + ${yasson.version} + test + org.slf4j slf4j-api @@ -110,7 +122,7 @@ none - httpclient-jena-test + httpclient-jena-jackson-test test test @@ -119,11 +131,40 @@ com.inrupt.client:inrupt-client-okhttp com.inrupt.client:inrupt-client-rdf4j + com.inrupt.client:inrupt-client-jsonb + + + + + httpclient-jena-jsonb-test + test + + test + + + + com.inrupt.client:inrupt-client-okhttp + com.inrupt.client:inrupt-client-rdf4j + com.inrupt.client:inrupt-client-jackson + + + + + httpclient-rdf4j-jackson-test + test + + test + + + + com.inrupt.client:inrupt-client-okhttp + com.inrupt.client:inrupt-client-jena + com.inrupt.client:inrupt-client-jsonb - httpclient-rdf4j-test + httpclient-rdf4j-jsonb-test test test @@ -132,11 +173,12 @@ com.inrupt.client:inrupt-client-okhttp com.inrupt.client:inrupt-client-jena + com.inrupt.client:inrupt-client-jackson - okhttp-jena-test + okhttp-jena-jackson-test test test @@ -146,11 +188,42 @@ com.inrupt.client:inrupt-client-httpclient com.inrupt.client:inrupt-client-rdf4j com.inrupt.client:inrupt-client-rdf-legacy + com.inrupt.client:inrupt-client-jsonb + + + + + okhttp-jena-jsonb-test + test + + test + + + + com.inrupt.client:inrupt-client-httpclient + com.inrupt.client:inrupt-client-rdf4j + com.inrupt.client:inrupt-client-rdf-legacy + com.inrupt.client:inrupt-client-jackson + + + + + okhttp-rdf4j-jackson-test + test + + test + + + + com.inrupt.client:inrupt-client-httpclient + com.inrupt.client:inrupt-client-jena + com.inrupt.client:inrupt-client-rdf-legacy + com.inrupt.client:inrupt-client-jsonb - okhttp-rdf4j-test + okhttp-rdf4j-jsonb-test test test @@ -160,6 +233,7 @@ com.inrupt.client:inrupt-client-httpclient com.inrupt.client:inrupt-client-jena com.inrupt.client:inrupt-client-rdf-legacy + com.inrupt.client:inrupt-client-jackson From 7d8b498e965c9dc7ded9f84d5cc36deefe7a1243 Mon Sep 17 00:00:00 2001 From: Nicolas Ayral Seydoux Date: Wed, 17 Apr 2024 10:23:05 +0200 Subject: [PATCH 2/6] Extend coverage on rdf4j module --- rdf4j/pom.xml | 50 ++++++++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 48 insertions(+), 2 deletions(-) diff --git a/rdf4j/pom.xml b/rdf4j/pom.xml index 00915b82835..681cd123fc8 100644 --- a/rdf4j/pom.xml +++ b/rdf4j/pom.xml @@ -150,6 +150,24 @@ ${junit.version} test + + com.inrupt.client + inrupt-client-jackson + ${project.version} + test + + + com.inrupt.client + inrupt-client-jsonb + ${project.version} + test + + + org.eclipse + yasson + ${yasson.version} + test + @@ -163,7 +181,7 @@ none - httpclient-test + httpclient-jackson-test test test @@ -171,11 +189,38 @@ com.inrupt.client:inrupt-client-okhttp + com.inrupt.client:inrupt-client-jsonb + + + + + httpclient-jsonb-test + test + + test + + + + com.inrupt.client:inrupt-client-okhttp + com.inrupt.client:inrupt-client-jackson + + + + + okhttp-jackson-test + test + + test + + + + com.inrupt.client:inrupt-client-httpclient + com.inrupt.client:inrupt-client-jsonb - okhttp-test + okhttp-jsonb-test test test @@ -183,6 +228,7 @@ com.inrupt.client:inrupt-client-httpclient + com.inrupt.client:inrupt-client-jackson From 903ce0b78611eadbbe41c9e3a9bad0b154ef1a2a Mon Sep 17 00:00:00 2001 From: Nicolas Ayral Seydoux Date: Wed, 17 Apr 2024 10:24:24 +0200 Subject: [PATCH 3/6] Extend test coverage on Jena module --- jena/pom.xml | 44 ++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 42 insertions(+), 2 deletions(-) diff --git a/jena/pom.xml b/jena/pom.xml index 99f1602e647..03a1d869985 100644 --- a/jena/pom.xml +++ b/jena/pom.xml @@ -73,6 +73,18 @@ ${project.version} test + + com.inrupt.client + inrupt-client-jsonb + ${project.version} + test + + + org.eclipse + yasson + ${yasson.version} + test + org.wiremock wiremock @@ -92,7 +104,20 @@ none - httpclient-test + httpclient-jackson-test + test + + test + + + + com.inrupt.client:inrupt-client-okhttp + com.inrupt.client:inrupt-client-jsonb + + + + + httpclient-jsonb-test test test @@ -100,11 +125,25 @@ com.inrupt.client:inrupt-client-okhttp + com.inrupt.client:inrupt-client-jackson + + + + + okhttp-jackson-test + test + + test + + + + com.inrupt.client:inrupt-client-httpclient + com.inrupt.client:inrupt-client-jsonb - okhhttp-test + okhttp-jsonb-test test test @@ -112,6 +151,7 @@ com.inrupt.client:inrupt-client-httpclient + com.inrupt.client:inrupt-client-jackson From 4b30d46ece40dc7934df0377d46d82e7febb7516 Mon Sep 17 00:00:00 2001 From: Nicolas Ayral Seydoux Date: Tue, 23 Apr 2024 11:43:35 +0200 Subject: [PATCH 4/6] Run CI From 1df19c35ecd155b01d72886c59c05483b9e36383 Mon Sep 17 00:00:00 2001 From: Nicolas Ayral Seydoux Date: Tue, 23 Apr 2024 12:11:15 +0200 Subject: [PATCH 5/6] Remove jackson-specific test in solid module --- .../src/test/java/com/inrupt/client/solid/SolidClientTest.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/solid/src/test/java/com/inrupt/client/solid/SolidClientTest.java b/solid/src/test/java/com/inrupt/client/solid/SolidClientTest.java index dbe200c135b..410be387b21 100644 --- a/solid/src/test/java/com/inrupt/client/solid/SolidClientTest.java +++ b/solid/src/test/java/com/inrupt/client/solid/SolidClientTest.java @@ -29,6 +29,7 @@ import com.inrupt.client.jackson.JacksonService; import com.inrupt.client.spi.JsonService; import com.inrupt.client.spi.RDFFactory; +import com.inrupt.client.spi.ServiceProvider; import com.inrupt.client.util.URIBuilder; import com.inrupt.client.vocabulary.PIM; @@ -58,7 +59,7 @@ class SolidClientTest { private static final Map config = new HashMap<>(); private static final RDF rdf = RDFFactory.getInstance(); private static final SolidClient client = SolidClient.getClient().session(Session.anonymous()); - private static final JsonService jsonService = new JacksonService(); + private static final JsonService jsonService = ServiceProvider.getJsonService(); @BeforeAll static void setup() { From bb34f1c2c86364d43a99c13b32e3023cd1d88ec0 Mon Sep 17 00:00:00 2001 From: Nicolas Ayral Seydoux Date: Tue, 23 Apr 2024 12:19:27 +0200 Subject: [PATCH 6/6] Lint --- solid/src/test/java/com/inrupt/client/solid/SolidClientTest.java | 1 - 1 file changed, 1 deletion(-) diff --git a/solid/src/test/java/com/inrupt/client/solid/SolidClientTest.java b/solid/src/test/java/com/inrupt/client/solid/SolidClientTest.java index 410be387b21..af328c953cb 100644 --- a/solid/src/test/java/com/inrupt/client/solid/SolidClientTest.java +++ b/solid/src/test/java/com/inrupt/client/solid/SolidClientTest.java @@ -26,7 +26,6 @@ import com.inrupt.client.*; import com.inrupt.client.auth.Session; -import com.inrupt.client.jackson.JacksonService; import com.inrupt.client.spi.JsonService; import com.inrupt.client.spi.RDFFactory; import com.inrupt.client.spi.ServiceProvider;