Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add extra sanity test for windows crlf output

  • Loading branch information...
commit aaa47fc52082f1a1d4f336f59ef0de69799bdf7e 1 parent d18d488
@jdillon jdillon authored
View
9 install4j-maven-plugin/src/test/java/org/sonatype/install4j/maven/VersionHelperTest.java
@@ -40,6 +40,15 @@ public void parseMultiLineVersion() {
}
@Test
+ public void parseMultiLineCrLFVersion() {
+ String input = "testing JVM in /usr …\r\n" +
+ "install4j version 5.1.3 (build 5521), built on 2012-09-21";
+
+ String version = helper.parseVersion(input);
+ assertThat(version, is("5.1.3"));
+ }
+
+ @Test
public void parseMultiLineVersionWithExtraJunk() {
String input = System.currentTimeMillis() + "\n" +
System.currentTimeMillis() + "\n" +
Please sign in to comment.
Something went wrong with that request. Please try again.