diff --git a/src/test/java/io/jenkins/plugins/junit/storage/TestResultStorageJunitTest.java b/src/test/java/io/jenkins/plugins/junit/storage/TestResultStorageJunitTest.java index 4bc99de17..df1f17d02 100644 --- a/src/test/java/io/jenkins/plugins/junit/storage/TestResultStorageJunitTest.java +++ b/src/test/java/io/jenkins/plugins/junit/storage/TestResultStorageJunitTest.java @@ -44,6 +44,7 @@ import hudson.tasks.junit.TestResultAction; import hudson.tasks.junit.TestResultSummary; import hudson.tasks.junit.TrendTestResultSummary; +import hudson.util.XStream2; import java.io.ByteArrayInputStream; import java.io.File; import java.io.IOException; @@ -941,7 +942,7 @@ static class LocalConnectionSupplier extends ConnectionSupplier { */ static class RemoteConnectionSupplier extends ConnectionSupplier implements SerializableOnlyOverRemoting { - private static final XStream XSTREAM = new XStream(); + private static final XStream XSTREAM = new XStream2(); private final String databaseXml; static {