writer.close();
}
@Test
public void testWriteAppendReopen() throws IOException {
TextFileWriter writer = new TextFileWriter(getConfiguration(), testDefaultPath, null);
writer.setAppendable(true);
TestUtils.writeData(writer, DATA09ARRAY, false);
TextFileReader reader = new TextFileReader(getConfiguration(), testDefaultPath, null);
TestUtils.readDataAndAssert(reader, DATA09ARRAY);
writer.close();
reader.close();
writer = new TextFileWriter(getConfiguration(), testDefaultPath, null);
writer.setAppendable(true);
TestUtils.writeData(writer, DATA09ARRAY, false);
reader = new TextFileReader(getConfiguration(), testDefaultPath, null);
TestUtils.readDataAndAssert(reader, StringUtils.concatenateStringArrays(DATA09ARRAY, DATA09ARRAY));
writer.close();
reader.close();
}