From cd7dc3e1ae70a77418f73f547030dd2dec43344b Mon Sep 17 00:00:00 2001 From: Claudio Atzori Date: Wed, 25 Mar 2020 18:04:23 +0100 Subject: [PATCH] dhp-dedup-openaire workflow tests upgraded to junit5 --- .../dhp/dedup/SparkCreateDedupTest.java | 21 ++++++------------- 1 file changed, 6 insertions(+), 15 deletions(-) diff --git a/dhp-workflows/dhp-dedup-openaire/src/test/java/eu/dnetlib/dhp/dedup/SparkCreateDedupTest.java b/dhp-workflows/dhp-dedup-openaire/src/test/java/eu/dnetlib/dhp/dedup/SparkCreateDedupTest.java index da5c29c36..1b8df02b5 100644 --- a/dhp-workflows/dhp-dedup-openaire/src/test/java/eu/dnetlib/dhp/dedup/SparkCreateDedupTest.java +++ b/dhp-workflows/dhp-dedup-openaire/src/test/java/eu/dnetlib/dhp/dedup/SparkCreateDedupTest.java @@ -3,12 +3,8 @@ package eu.dnetlib.dhp.dedup; import com.google.common.hash.HashFunction; import com.google.common.hash.Hashing; import eu.dnetlib.dhp.application.ArgumentApplicationParser; -import org.apache.commons.io.IOUtils; -import org.apache.hadoop.conf.Configuration; -import org.apache.hadoop.fs.*; import org.junit.jupiter.api.BeforeEach; -import org.junit.Ignore; -import org.junit.jupiter.api.Test; +import org.junit.jupiter.api.Disabled; import java.io.IOException; @@ -23,8 +19,7 @@ public class SparkCreateDedupTest { configuration = ""; } - @Test - @Ignore + @Disabled("must be parametrized to run locally") public void createSimRelsTest() throws Exception { SparkCreateSimRels.main(new String[]{ "-mt", "local[*]", @@ -36,8 +31,7 @@ public class SparkCreateDedupTest { }); } - @Test - @Ignore + @Disabled("must be parametrized to run locally") public void createCCTest() throws Exception { SparkCreateConnectedComponent.main(new String[]{ @@ -49,8 +43,7 @@ public class SparkCreateDedupTest { }); } - @Test - @Ignore + @Disabled("must be parametrized to run locally") public void dedupRecordTest() throws Exception { SparkCreateDedupRecord.main(new String[]{ "-mt", "local[*]", @@ -61,14 +54,12 @@ public class SparkCreateDedupTest { }); } - @Test - @Ignore + @Disabled("must be parametrized to run locally") public void printConfiguration() throws Exception { System.out.println(ArgumentApplicationParser.compressArgument(configuration)); } - @Test - @Ignore + @Disabled("must be parametrized to run locally") public void testHashCode() { final String s1 = "20|grid________::6031f94bef015a37783268ec1e75f17f"; final String s2 = "20|nsf_________::b12be9edf414df8ee66b4c52a2d8da46";