Permalink
Browse files

Undo change to get test working on Windows

This change was already made on master, in a better way
  • Loading branch information...
scarlucci committed May 3, 2013
1 parent b08a2d0 commit 04ec5db43b973ec599ff851f01dff043e876d2e5
@@ -143,7 +143,7 @@ public void roundtrip()
assertThat( outputStream.size(), greaterThan( 15 ) );
final String output = new String( outputStream.toByteArray(), UTF8 );
- assertThat( output.replace("\r", ""), equalTo( withStandardHeaders( prefixFile1( false ) ).replace("\r", "") ) );
+ assertThat( output, equalTo( withStandardHeaders( prefixFile1( false ) ) ) );
}
@Test
@@ -165,7 +165,7 @@ public void roundtrip2()
// once read, the file looses "peculiarities" as dots from start and comments
// naturally this applies to all nexus-managed files only (hosted + groups) as proxy WLs are
// passed on as-is (unchanged)
- assertThat( output.replace("\r", ""), equalTo( withStandardHeaders( prefixFile1( false ) ).replace("\r", "") ) );
+ assertThat( output, equalTo( withStandardHeaders( prefixFile1( false ) ) ) );
}
@Test
@@ -187,7 +187,7 @@ public void roundtrip3()
// once read, the file looses "peculiarities" as dots from start and comments
// naturally this applies to all nexus-managed files only (hosted + groups) as proxy WLs are
// passed on as-is (unchanged)
- assertThat( output.replace("\r", ""), equalTo( withStandardHeaders( prefixFile3( false ) ).replace("\r", "") ) );
+ assertThat( output, equalTo( withStandardHeaders( prefixFile3( false ) ) ) );
}
@Test
@@ -209,6 +209,6 @@ public void roundtrip4()
// once read, the file looses "peculiarities" as dots from start and comments
// naturally this applies to all nexus-managed files only (hosted + groups) as proxy WLs are
// passed on as-is (unchanged)
- assertThat( output.replace("\r", ""), equalTo( withStandardHeaders( prefixFile4( false, true ) ).replace("\r", "") ) );
+ assertThat( output, equalTo( withStandardHeaders( prefixFile4( false, true ) ) ) );
}
}

0 comments on commit 04ec5db

Please sign in to comment.