dhp-dedup-openaire workflow tests upgraded to junit5

This commit is contained in:
Claudio Atzori 2020-03-25 18:04:23 +01:00
parent c0e825e713
commit cd7dc3e1ae
1 changed files with 6 additions and 15 deletions

View File

@ -3,12 +3,8 @@ package eu.dnetlib.dhp.dedup;
import com.google.common.hash.HashFunction; import com.google.common.hash.HashFunction;
import com.google.common.hash.Hashing; import com.google.common.hash.Hashing;
import eu.dnetlib.dhp.application.ArgumentApplicationParser; 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.jupiter.api.BeforeEach;
import org.junit.Ignore; import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;
import java.io.IOException; import java.io.IOException;
@ -23,8 +19,7 @@ public class SparkCreateDedupTest {
configuration = ""; configuration = "";
} }
@Test @Disabled("must be parametrized to run locally")
@Ignore
public void createSimRelsTest() throws Exception { public void createSimRelsTest() throws Exception {
SparkCreateSimRels.main(new String[]{ SparkCreateSimRels.main(new String[]{
"-mt", "local[*]", "-mt", "local[*]",
@ -36,8 +31,7 @@ public class SparkCreateDedupTest {
}); });
} }
@Test @Disabled("must be parametrized to run locally")
@Ignore
public void createCCTest() throws Exception { public void createCCTest() throws Exception {
SparkCreateConnectedComponent.main(new String[]{ SparkCreateConnectedComponent.main(new String[]{
@ -49,8 +43,7 @@ public class SparkCreateDedupTest {
}); });
} }
@Test @Disabled("must be parametrized to run locally")
@Ignore
public void dedupRecordTest() throws Exception { public void dedupRecordTest() throws Exception {
SparkCreateDedupRecord.main(new String[]{ SparkCreateDedupRecord.main(new String[]{
"-mt", "local[*]", "-mt", "local[*]",
@ -61,14 +54,12 @@ public class SparkCreateDedupTest {
}); });
} }
@Test @Disabled("must be parametrized to run locally")
@Ignore
public void printConfiguration() throws Exception { public void printConfiguration() throws Exception {
System.out.println(ArgumentApplicationParser.compressArgument(configuration)); System.out.println(ArgumentApplicationParser.compressArgument(configuration));
} }
@Test @Disabled("must be parametrized to run locally")
@Ignore
public void testHashCode() { public void testHashCode() {
final String s1 = "20|grid________::6031f94bef015a37783268ec1e75f17f"; final String s1 = "20|grid________::6031f94bef015a37783268ec1e75f17f";
final String s2 = "20|nsf_________::b12be9edf414df8ee66b4c52a2d8da46"; final String s2 = "20|nsf_________::b12be9edf414df8ee66b4c52a2d8da46";