Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #227 from mbenson/FORGE-695

[FORGE-695] address windows-specific shell test failures in a platform-i...
  • Loading branch information...
commit f2ae9538776faec57fc1deaf3a30f07ba0156e1a 2 parents 0c72134 + fcb1e45
@lincolnthree lincolnthree authored
View
7 shell/src/test/java/org/jboss/forge/shell/command/DidYouMeanObserverTest.java
@@ -15,6 +15,7 @@
public class DidYouMeanObserverTest extends AbstractShellTest
{
+ private static final String EOL = System.getProperty("line.separator");
@Test(expected = NoSuchCommandException.class)
public void testNoSuggestionsSuggestMissingPlugin() throws Exception
@@ -26,7 +27,8 @@ public void testNoSuggestionsSuggestMissingPlugin() throws Exception
public void testSuggestInvalidCommand() throws Exception
{
getShell().execute("l");
- assertTrue(getOutput().contains("Did you mean this ?\n\tls"));
+ assertTrue(getOutput().contains(String.format(
+ "Did you mean this ?%s\tls", EOL)));
}
@Test
@@ -34,7 +36,8 @@ public void testSuggestInvalidAliasedCommand() throws Exception
{
getShell().execute("alias \"ll=ls -l\"");
getShell().execute("l");
- assertTrue(getOutput().contains("Did you mean any of these ?\n\tll\n\tls"));
+ assertTrue(getOutput().contains(String.format(
+ "Did you mean any of these ?%1$s\tll%1$s\tls", EOL)));
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.