diff --git a/pom.xml b/pom.xml index 018f5cb9b..760ad2cb1 100644 --- a/pom.xml +++ b/pom.xml @@ -248,11 +248,6 @@ commons-io 2.7 - - org.codehaus.plexus - plexus-utils - 3.5.1 - org.jsoup jsoup diff --git a/src/main/java/net/masterthought/cucumber/json/Embedding.java b/src/main/java/net/masterthought/cucumber/json/Embedding.java index af316229b..81f5087a6 100644 --- a/src/main/java/net/masterthought/cucumber/json/Embedding.java +++ b/src/main/java/net/masterthought/cucumber/json/Embedding.java @@ -4,7 +4,7 @@ import java.util.Locale; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; -import org.codehaus.plexus.util.Base64; +import java.util.Base64; import net.masterthought.cucumber.json.deserializers.EmbeddingDeserializer; @@ -51,7 +51,7 @@ public String getName() { } public String getDecodedData() { - return new String(Base64.decodeBase64(data.getBytes(StandardCharsets.UTF_8)), StandardCharsets.UTF_8); + return new String(Base64.getDecoder().decode(data.getBytes(StandardCharsets.UTF_8)), StandardCharsets.UTF_8); } public String getFileName() { diff --git a/src/test/java/net/masterthought/cucumber/generators/integrations/helpers/EmbeddingAssertion.java b/src/test/java/net/masterthought/cucumber/generators/integrations/helpers/EmbeddingAssertion.java index f412a6ecb..35f2d1ec8 100644 --- a/src/test/java/net/masterthought/cucumber/generators/integrations/helpers/EmbeddingAssertion.java +++ b/src/test/java/net/masterthought/cucumber/generators/integrations/helpers/EmbeddingAssertion.java @@ -4,7 +4,7 @@ import java.nio.charset.StandardCharsets; -import org.codehaus.plexus.util.Base64; +import java.util.Base64; import net.masterthought.cucumber.json.Embedding; @@ -33,6 +33,6 @@ private WebAssertion getBox() { } private String getDecodedData(String data) { - return new String(Base64.decodeBase64(data.getBytes(StandardCharsets.UTF_8)), StandardCharsets.UTF_8); + return new String(Base64.getDecoder().decode(data.getBytes(StandardCharsets.UTF_8)), StandardCharsets.UTF_8); } }