diff --git a/nd4j/nd4j-backends/nd4j-tests/pom.xml b/nd4j/nd4j-backends/nd4j-tests/pom.xml index e814f4cf5..f6c0188ed 100644 --- a/nd4j/nd4j-backends/nd4j-tests/pom.xml +++ b/nd4j/nd4j-backends/nd4j-tests/pom.xml @@ -105,46 +105,6 @@ - - - org.apache.maven.plugins - maven-shade-plugin - ${maven-shade-plugin.version} - - true - false - - - *:* - - org/datanucleus/** - META-INF/*.SF - META-INF/*.DSA - META-INF/*.RSA - - - - - - - - - package - - shade - - - - - reference.conf - - - - - - - - diff --git a/nd4j/nd4j-backends/nd4j-tests/src/test/java/org/nd4j/linalg/dataset/NormalizerSerializerTest.java b/nd4j/nd4j-backends/nd4j-tests/src/test/java/org/nd4j/linalg/dataset/NormalizerSerializerTest.java index a65808fa7..f98ff27e0 100644 --- a/nd4j/nd4j-backends/nd4j-tests/src/test/java/org/nd4j/linalg/dataset/NormalizerSerializerTest.java +++ b/nd4j/nd4j-backends/nd4j-tests/src/test/java/org/nd4j/linalg/dataset/NormalizerSerializerTest.java @@ -21,6 +21,7 @@ package org.nd4j.linalg.dataset; import lombok.Getter; +import org.junit.jupiter.api.BeforeAll; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Tag; import org.junit.jupiter.api.Test; @@ -65,12 +66,12 @@ import static org.junit.jupiter.api.Assertions.assertThrows; @NativeTag @Tag(TagNames.FILE_IO) public class NormalizerSerializerTest extends BaseNd4jTestWithBackends { - @TempDir File tmpFile; - private NormalizerSerializer SUT; + @TempDir File tmpFile; + private static NormalizerSerializer SUT; - @BeforeEach - public void setUp() throws IOException { + @BeforeAll + public static void setUp() throws IOException { SUT = NormalizerSerializer.getDefault(); } @@ -298,7 +299,6 @@ public class NormalizerSerializerTest extends BaseNd4jTestWithBackends { public void testCustomNormalizerWithoutRegisteredStrategy(Nd4jBackend backend) throws Exception { assertThrows(RuntimeException.class, () -> { File normalizerFile = Files.createTempFile(tmpFile.toPath(),"pre-process-" + UUID.randomUUID().toString(),"bin").toFile(); - SUT.write(new MyNormalizer(123), normalizerFile); });