metron-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From o...@apache.org
Subject incubator-metron git commit: METRON-758 HdfsServiceImplTest should sort files for list test (merrimanr via ottobackwards) closes apache/incubator-metron#474
Date Tue, 07 Mar 2017 23:28:02 GMT
Repository: incubator-metron
Updated Branches:
  refs/heads/master 134a23311 -> 22591a7cb


METRON-758 HdfsServiceImplTest should sort files for list test (merrimanr via ottobackwards)
closes apache/incubator-metron#474


Project: http://git-wip-us.apache.org/repos/asf/incubator-metron/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-metron/commit/22591a7c
Tree: http://git-wip-us.apache.org/repos/asf/incubator-metron/tree/22591a7c
Diff: http://git-wip-us.apache.org/repos/asf/incubator-metron/diff/22591a7c

Branch: refs/heads/master
Commit: 22591a7cbe7c373b8744caf8a96d1b358e0d419e
Parents: 134a233
Author: merrimanr <merrimanr@gmail.com>
Authored: Tue Mar 7 16:10:56 2017 -0500
Committer: Otto Fowler <otto@apache.org>
Committed: Tue Mar 7 16:10:56 2017 -0500

----------------------------------------------------------------------
 .../org/apache/metron/rest/service/impl/HdfsServiceImplTest.java   | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-metron/blob/22591a7c/metron-interface/metron-rest/src/test/java/org/apache/metron/rest/service/impl/HdfsServiceImplTest.java
----------------------------------------------------------------------
diff --git a/metron-interface/metron-rest/src/test/java/org/apache/metron/rest/service/impl/HdfsServiceImplTest.java
b/metron-interface/metron-rest/src/test/java/org/apache/metron/rest/service/impl/HdfsServiceImplTest.java
index 9c18dc6..005a427 100644
--- a/metron-interface/metron-rest/src/test/java/org/apache/metron/rest/service/impl/HdfsServiceImplTest.java
+++ b/metron-interface/metron-rest/src/test/java/org/apache/metron/rest/service/impl/HdfsServiceImplTest.java
@@ -29,6 +29,7 @@ import org.junit.rules.ExpectedException;
 
 import java.io.File;
 import java.io.IOException;
+import java.util.Collections;
 import java.util.List;
 
 import static java.nio.charset.StandardCharsets.UTF_8;
@@ -65,6 +66,7 @@ public class HdfsServiceImplTest {
         FileUtils.writeStringToFile(new File(testDir, "file2.txt"), "value2");
 
         List<String> paths = hdfsService.list(new Path(testDir));
+        Collections.sort(paths);
         assertEquals(2, paths.size());
         assertEquals("file1.txt", paths.get(0));
         assertEquals("file2.txt", paths.get(1));


Mime
View raw message