geode-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kl...@apache.org
Subject geode git commit: GEODE-3328: fix testAddGemFirePropertyFileToCommandLineNew on Windows
Date Tue, 15 Aug 2017 19:30:21 GMT
Repository: geode
Updated Branches:
  refs/heads/GEODE-3328 [created] 27475ea80


GEODE-3328: fix testAddGemFirePropertyFileToCommandLineNew on Windows

Modification of ca4b81 committed by Jinmei Liao


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

Branch: refs/heads/GEODE-3328
Commit: 27475ea80374e6fb00d6b77cee8bb7301a161bf5
Parents: a7a197d
Author: Kirk Lund <klund@apache.org>
Authored: Tue Aug 15 11:47:58 2017 -0700
Committer: Kirk Lund <klund@apache.org>
Committed: Tue Aug 15 11:47:58 2017 -0700

----------------------------------------------------------------------
 .../internal/cli/commands/GfshCommandJUnitTest.java      | 11 +++++++----
 1 file changed, 7 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/geode/blob/27475ea8/geode-core/src/test/java/org/apache/geode/management/internal/cli/commands/GfshCommandJUnitTest.java
----------------------------------------------------------------------
diff --git a/geode-core/src/test/java/org/apache/geode/management/internal/cli/commands/GfshCommandJUnitTest.java
b/geode-core/src/test/java/org/apache/geode/management/internal/cli/commands/GfshCommandJUnitTest.java
index da60c7a..5d84990 100644
--- a/geode-core/src/test/java/org/apache/geode/management/internal/cli/commands/GfshCommandJUnitTest.java
+++ b/geode-core/src/test/java/org/apache/geode/management/internal/cli/commands/GfshCommandJUnitTest.java
@@ -408,14 +408,17 @@ public class GfshCommandJUnitTest {
   }
 
   @Test
-  public void testAddGemFirePropertyFileToCommandLine() {
-    final List<String> commandLine = new ArrayList<>();
+  public void testAddGemFirePropertyFileToCommandLineNew() {
+    List<String> commandLine = new ArrayList<>();
     assertTrue(commandLine.isEmpty());
+
     StartMemberUtils.addGemFirePropertyFile(commandLine, null);
     assertTrue(commandLine.isEmpty());
-    StartMemberUtils.addGemFirePropertyFile(commandLine, new File("/path/to/gemfire.properties"));
+
+    File file = new File("/path/to/gemfire.properties");
+    StartMemberUtils.addGemFirePropertyFile(commandLine, file);
     assertFalse(commandLine.isEmpty());
-    assertTrue(commandLine.contains("-DgemfirePropertyFile=/path/to/gemfire.properties"));
+    assertTrue(commandLine.contains("-DgemfirePropertyFile=" + file.getAbsolutePath()));
   }
 
   @Test


Mime
View raw message