From 02320de37120b3c07965fffae91fa48c5dc2a868 Mon Sep 17 00:00:00 2001 From: miconis Date: Tue, 24 Mar 2020 17:43:51 +0100 Subject: [PATCH] minor changes --- .../dhp/dedup/SparkCreateDedupTest.java | 20 ------------------- 1 file changed, 20 deletions(-) diff --git a/dhp-workflows/dhp-dedup/src/test/java/eu/dnetlib/dhp/dedup/SparkCreateDedupTest.java b/dhp-workflows/dhp-dedup/src/test/java/eu/dnetlib/dhp/dedup/SparkCreateDedupTest.java index b1be5795e..8f1e3b0ae 100644 --- a/dhp-workflows/dhp-dedup/src/test/java/eu/dnetlib/dhp/dedup/SparkCreateDedupTest.java +++ b/dhp-workflows/dhp-dedup/src/test/java/eu/dnetlib/dhp/dedup/SparkCreateDedupTest.java @@ -80,24 +80,4 @@ public class SparkCreateDedupTest { System.out.println(s2.hashCode()); System.out.println(hashFunction.hashString(s2).asLong()); } - - @Test - public void fileExistsTest() throws IOException { - - boolean result = false; - - FileSystem fileSystem = FileSystem.get(new Configuration()); - - FileStatus[] fileStatuses = fileSystem.listStatus(new Path("/tmp")); - - for (FileStatus fs : fileStatuses) { - if (fs.isDirectory()) { - if (fileSystem.exists(new Path(DedupUtility.createMergeRelPath("/tmp", fs.getPath().getName(), "cicciopasticcio")))) { - System.out.println("fs = " + DedupUtility.createMergeRelPath("/tmp", fs.getPath().getName(), "cicciopasticcio")); - result = true; - } - } - } - - } }