From 0c3ae1e53aa39b36ef8135a1e768727edb54c899 Mon Sep 17 00:00:00 2001 From: GordeaS <4517853+gsergiu@users.noreply.github.com> Date: Mon, 16 Dec 2024 10:40:24 +0100 Subject: [PATCH] removed unused imports and dependency #EA-4015 --- set-client/pom.xml | 2 ++ .../europeana/set/client/json/UserSetDeserializer.java | 6 ++---- .../web/WebUserSetProtocolExceptionsTest.java | 4 +--- .../client/integration/web/WebUserSetProtocolTest.java | 10 ++-------- 4 files changed, 7 insertions(+), 15 deletions(-) diff --git a/set-client/pom.xml b/set-client/pom.xml index 8055cad6..3689afb5 100644 --- a/set-client/pom.xml +++ b/set-client/pom.xml @@ -39,11 +39,13 @@ + diff --git a/set-client/src/main/java/eu/europeana/set/client/json/UserSetDeserializer.java b/set-client/src/main/java/eu/europeana/set/client/json/UserSetDeserializer.java index d66662e9..af2bc533 100644 --- a/set-client/src/main/java/eu/europeana/set/client/json/UserSetDeserializer.java +++ b/set-client/src/main/java/eu/europeana/set/client/json/UserSetDeserializer.java @@ -1,16 +1,14 @@ package eu.europeana.set.client.json; +import java.io.IOException; +import org.apache.commons.lang3.StringUtils; import com.fasterxml.jackson.core.JsonParser; import com.fasterxml.jackson.databind.DeserializationContext; import com.fasterxml.jackson.databind.JsonDeserializer; -import com.fasterxml.jackson.databind.JsonNode; import com.fasterxml.jackson.databind.ObjectMapper; import com.fasterxml.jackson.databind.node.ObjectNode; import eu.europeana.set.definitions.model.UserSet; import eu.europeana.set.definitions.model.impl.BaseUserSet; -import org.apache.commons.lang3.StringUtils; - -import java.io.IOException; /** * Used for Deserializing UserSet. diff --git a/set-client/src/test/java/eu/europeana/set/client/integration/web/WebUserSetProtocolExceptionsTest.java b/set-client/src/test/java/eu/europeana/set/client/integration/web/WebUserSetProtocolExceptionsTest.java index 08b0021d..80ec719d 100644 --- a/set-client/src/test/java/eu/europeana/set/client/integration/web/WebUserSetProtocolExceptionsTest.java +++ b/set-client/src/test/java/eu/europeana/set/client/integration/web/WebUserSetProtocolExceptionsTest.java @@ -2,12 +2,10 @@ import static org.junit.jupiter.api.Assertions.assertEquals; import java.io.IOException; - -import eu.europeana.set.client.exception.SetApiClientException; -import eu.europeana.set.definitions.model.UserSet; import org.apache.hc.core5.http.HttpStatus; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; +import eu.europeana.set.client.exception.SetApiClientException; /** diff --git a/set-client/src/test/java/eu/europeana/set/client/integration/web/WebUserSetProtocolTest.java b/set-client/src/test/java/eu/europeana/set/client/integration/web/WebUserSetProtocolTest.java index de290fd5..138b8920 100644 --- a/set-client/src/test/java/eu/europeana/set/client/integration/web/WebUserSetProtocolTest.java +++ b/set-client/src/test/java/eu/europeana/set/client/integration/web/WebUserSetProtocolTest.java @@ -3,15 +3,11 @@ import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertNotNull; import java.io.IOException; -import java.util.regex.Matcher; -import java.util.regex.Pattern; - -import eu.europeana.set.client.exception.SetApiClientException; -import eu.europeana.set.definitions.model.UserSet; import org.apache.hc.core5.http.HttpStatus; -import org.apache.hc.core5.http.io.entity.EntityUtils; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; +import eu.europeana.set.client.exception.SetApiClientException; +import eu.europeana.set.definitions.model.UserSet; /** * This class aims at testing of the annotation methods. @@ -21,8 +17,6 @@ @Disabled public class WebUserSetProtocolTest extends BaseWebUserSetProtocol { - private static final String USER_SET_PATH = "http://data.europeana.eu/set/"; - @Test public void createUserSet() throws SetApiClientException, IOException { String setId = createTestUserSet(USER_SET_CONTENT, null);