fix test failure

This commit is contained in:
Ahmed Tawila 2017-11-16 11:38:58 +02:00
parent df3aa78d57
commit f6ca36fa21
2 changed files with 3 additions and 3 deletions

View File

@ -28,7 +28,7 @@ public class FileWriterTest {
assertThat(
StreamUtils.getStringFromInputStream(
new FileInputStream(fileName)))
.isEqualTo("UK\r\n" + "US\r\n" + "Germany\r\n" + "Spain\r\n");
.isEqualTo("UK\r\n" + "US\r\n" + "Germany\r\n" + "Spain\n");
}
@After

View File

@ -24,11 +24,11 @@ public class GuavaTest {
public void whenAppendToFileUsingGuava_thenCorrect() throws IOException {
File file = new File(fileName);
CharSink chs = Files.asCharSink(file, Charsets.UTF_8, FileWriteMode.APPEND);
chs.write("Spain\n");
chs.write("Spain");
assertThat(StreamUtils.getStringFromInputStream(
new FileInputStream(fileName)))
.isEqualTo("UK\r\n" + "US\r\n" + "Germany\r\n" + "Spain\r\n");
.isEqualTo("UK\r\n" + "US\r\n" + "Germany\r\n" + "Spain");
}
@After