Skip to content

Commit

Permalink
fix for Windows vs Linux end-of-line delim for test files
Browse files Browse the repository at this point in the history
  • Loading branch information
docjason committed Jun 9, 2015
1 parent 3f1f348 commit 672f3ab
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public class TestCSVOutputStream extends TestGISBase {

@Test
public void testStreamOutput1() throws Exception {
doTest(null, "csv_example.csv", "\r\n");
doTest(null, "csv_example.csv", null);
}

@Test
Expand All @@ -69,8 +69,7 @@ public void testStreamOutput2() throws Exception {

private void doTest(Schema s, String testfile, String lineDel) throws IOException {
InputStream stream = getStream(testfile);
IGISInputStream is = GISFactory
.getInputStream(DocumentType.CSV, stream, s, lineDel);
IGISInputStream is = GISFactory.getInputStream(DocumentType.CSV, stream, s, lineDel);
File temp = File.createTempFile("test", ".csv");
try {
OutputStream outputStream = new FileOutputStream(temp);
Expand Down

0 comments on commit 672f3ab

Please sign in to comment.