Permalink
Browse files

Java 7 returns localized error messages which causes two tests to fai…

…l (because they explicitly check parts of the error message). Adding the locale to the java command invocation fixes this.
  • Loading branch information...
1 parent 87a4b54 commit 3c678833c369058f18d9c230b795774983c5fd69 @NicoleRauch NicoleRauch committed Mar 2, 2014
@@ -22,7 +22,7 @@ public void testBasics() throws Exception {
@Test
public void testClassNotFound() throws Exception {
- CommandRunner runner = new CommandRunner("java BadClass", "", null);
+ CommandRunner runner = new CommandRunner("java -Duser.country=US -Duser.language=en BadClass", "", null);
runner.run();
assertHasRegexp("Error", runner.getError());
assertEquals("", runner.getOutput());
@@ -72,7 +72,7 @@ private void doSimpleRun() throws Exception {
@Test
public void testStandardError() throws Exception {
- client = new CommandRunningFitClient(new CommandRunningFitClient.OutOfProcessCommandRunner("java blah", null));
+ client = new CommandRunningFitClient(new CommandRunningFitClient.OutOfProcessCommandRunner("java -Duser.country=US -Duser.language=en blah", null));
client.addFitClientListener(this);
client.start();
Thread.sleep(100);

0 comments on commit 3c67883

Please sign in to comment.