Skip to content

Commit

Permalink
eclipse-rdf4jGH-1986 use line separator
Browse files Browse the repository at this point in the history
Signed-off-by:Bart Hanssens <bart.hanssens@bosa.fgov.be>
  • Loading branch information
barthanssens committed Mar 9, 2020
1 parent 9afb0dd commit 738c25f
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,12 @@ public void testWriteSingleStatementWithSubjectNamespace() {
ByteArrayOutputStream outputWriter = new ByteArrayOutputStream();
write(input, outputWriter);

String expectedResult = "@prefix net: <http://example.net/> .\n" +
"@prefix org: <http://example.org/> .\n\n" +
"net:uri0 org:uri1 org:uri2 .\n";
String sep = System.lineSeparator();
String expectedResult = "@prefix net: <http://example.net/> ." + sep +
"@prefix org: <http://example.org/> ." + sep + sep +
"net:uri0 org:uri1 org:uri2 ." + sep;

assertEquals(expectedResult, outputWriter.toString().replaceAll("\r", ""));
assertEquals(expectedResult, outputWriter.toString());
}

private void write(Model model, OutputStream writer) {
Expand Down

0 comments on commit 738c25f

Please sign in to comment.