You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@storm.apache.org by bo...@apache.org on 2015/12/10 18:30:27 UTC

[4/6] storm git commit: more paths with explicit /;

more paths with explicit /;


Project: http://git-wip-us.apache.org/repos/asf/storm/repo
Commit: http://git-wip-us.apache.org/repos/asf/storm/commit/b1ce50d3
Tree: http://git-wip-us.apache.org/repos/asf/storm/tree/b1ce50d3
Diff: http://git-wip-us.apache.org/repos/asf/storm/diff/b1ce50d3

Branch: refs/heads/master
Commit: b1ce50d3206543c09c99ec460556991cf9f2e16e
Parents: 7e270c2
Author: Chuck Burgess <cb...@progressrail.com>
Authored: Wed Dec 9 15:48:52 2015 -0600
Committer: Chuck Burgess <cb...@progressrail.com>
Committed: Wed Dec 9 15:51:36 2015 -0600

----------------------------------------------------------------------
 .../backtype/storm/localizer/LocalizerTest.java    | 17 ++++++-----------
 1 file changed, 6 insertions(+), 11 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/storm/blob/b1ce50d3/storm-core/test/jvm/backtype/storm/localizer/LocalizerTest.java
----------------------------------------------------------------------
diff --git a/storm-core/test/jvm/backtype/storm/localizer/LocalizerTest.java b/storm-core/test/jvm/backtype/storm/localizer/LocalizerTest.java
index 3ffd2b1..a1f6741 100644
--- a/storm-core/test/jvm/backtype/storm/localizer/LocalizerTest.java
+++ b/storm-core/test/jvm/backtype/storm/localizer/LocalizerTest.java
@@ -237,35 +237,30 @@ public class LocalizerTest {
 
   @Test
   public void testArchivesTgz() throws Exception {
-    testArchives("test/jvm/backtype/storm/localizer/localtestwithsymlink.tgz", true,
-        21344);
+    testArchives(joinPath("test", "jvm", "backtype", "storm", "localizer", "localtestwithsymlink.tgz"), true, 21344);
   }
 
   @Test
   public void testArchivesZip() throws Exception {
-    testArchives("test/jvm/backtype/storm/localizer/localtest.zip", false,
-        21348);
+    testArchives(joinPath("test", "jvm", "backtype", "storm", "localizer", "localtest.zip"), false, 21348);
   }
 
   @Test
   public void testArchivesTarGz() throws Exception {
-    testArchives("test/jvm/backtype/storm/localizer/localtestwithsymlink.tar.gz",
-        true, 21344);
+    testArchives(joinPath("test", "jvm", "backtype", "storm", "localizer", "localtestwithsymlink.tar.gz"), true, 21344);
   }
 
   @Test
   public void testArchivesTar() throws Exception {
-    testArchives("test/jvm/backtype/storm/localizer/localtestwithsymlink.tar", true,
-        21344);
+    testArchives(joinPath("test", "jvm", "backtype", "storm", "localizer", "localtestwithsymlink.tar"), true, 21344);
   }
 
   @Test
   public void testArchivesJar() throws Exception {
-    testArchives("test/jvm/backtype/storm/localizer/localtestwithsymlink.jar", false,
-        21416);
+    testArchives(joinPath("test", "jvm", "backtype", "storm", "localizer", "localtestwithsymlink.jar"), false, 21416);
   }
 
-  // archive passed in must contain symlink named tmptestsymlink is not a zip file
+  // archive passed in must contain symlink named tmptestsymlink if not a zip file
   public void testArchives(String archivePath, boolean supportSymlinks, int size) throws Exception {
     Map conf = new HashMap();
     // set clean time really high so doesn't kick in