Ticket #19407: 19407.windows_trim.patch

File 19407.windows_trim.patch, 1.1 KB (added by taylor.smock, 5 years ago)

Trim output on Windows (and other platforms) so that the content is checked, and not whitespace.

  • test/unit/org/openstreetmap/josm/command/SequenceCommandTest.java

     
    339339        ReportedException reportedException = assertThrows(ReportedException.class, command::executeCommand);
    340340        StringWriter stringWriter = new StringWriter();
    341341        reportedException.printReportDataTo(new PrintWriter(stringWriter));
    342         assertEquals("=== REPORTED CRASH DATA ===\n" +
     342        assertEquals(("=== REPORTED CRASH DATA ===\n" +
    343343                "sequence_information:\n" +
    344344                " - sequence_name: Sequence: test\n" +
    345345                " - sequence_command: foo command\n" +
     
    346346                " - sequence_index: 0\n" +
    347347                " - sequence_commands: [null]\n" +
    348348                " - sequence_commands_descriptions: [foo command]\n" +
    349                 "\n", stringWriter.toString());
     349                "\n").trim(), stringWriter.toString().trim());
    350350    }
    351351}