Skip to content

Commit

Permalink
check line by line (ignoring linux windows crlf)
Browse files Browse the repository at this point in the history
  • Loading branch information
quaddy-services committed May 20, 2019
1 parent 556f807 commit fb948e6
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions tests/src/de/quaddy_services/report/TaskReportTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -61,15 +61,12 @@ protected void displayText(String aTempReport, List<Action> aAnActions) {
+ " 00,65 SWD-Support-OMS CareInstructions\r\n" + " 00,14 SWD-Support-OMS MSC\r\n"
+ " 01,10 SWD-Support-OMS OMS-Errors\r\n" + " 01,89 SWD-Support-OMS\r\n"
+ " 01,30 SWD-other TISA\r\n" + "08,92 Sum\r\n" + "\r\n" + "-------------\r\n" + "";
if (!tempExpected.equals(tempReportString.toString())) {
StringTokenizer tempT1 = new StringTokenizer(tempExpected, "\r\n");
StringTokenizer tempT2 = new StringTokenizer(tempReportString.toString(), "\r\n");
while (tempT1.hasMoreTokens() && tempT2.hasMoreTokens()) {
String tempS1 = tempT1.nextToken();
String tempS2 = tempT2.nextToken();
assertEquals(tempS1, tempS2);
}
fail("Different result");
StringTokenizer tempT1 = new StringTokenizer(tempExpected, "\r\n");
StringTokenizer tempT2 = new StringTokenizer(tempReportString.toString(), "\r\n");
while (tempT1.hasMoreTokens() && tempT2.hasMoreTokens()) {
String tempS1 = tempT1.nextToken();
String tempS2 = tempT2.nextToken();
assertEquals(tempS1, tempS2);
}
}
}

0 comments on commit fb948e6

Please sign in to comment.