Skip to content

Commit eb76527

Browse files
committed
MainServiceTest: use unique system properties
The "foo" system property clashed with the SystemPropertyArgumentTest.
1 parent bd26730 commit eb76527

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/test/java/org/scijava/main/MainServiceTest.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -86,9 +86,9 @@ public void testConsoleArgs() {
8686

8787
final ConsoleService consoleService = mainService.context().service(
8888
ConsoleService.class);
89-
consoleService.processArgs("-Dfoo=bar", //
89+
consoleService.processArgs("-Dmain.test.foo=bar", //
9090
"--main", "org.scijava.main.MainServiceTest$MathMain", "5", "+", "6", //
91-
"--", "-Dwhiz=bang", //
91+
"--", "-Dmain.test.whiz=bang", //
9292
"--main", "org.scijava.main.MainServiceTest$MathMain", "7", "-", "4");
9393

9494
final MainService.Main[] m = mainService.getMains();
@@ -103,8 +103,8 @@ public void testConsoleArgs() {
103103
assertEquals(System.getProperty(key(0)), "11.0");
104104
assertEquals(System.getProperty(key(1)), "3.0");
105105

106-
assertEquals(System.getProperty("foo"), "bar");
107-
assertEquals(System.getProperty("whiz"), "bang");
106+
assertEquals(System.getProperty("main.test.foo"), "bar");
107+
assertEquals(System.getProperty("main.test.whiz"), "bang");
108108
}
109109

110110
// -- Helper methods --

0 commit comments

Comments
 (0)