fix test failure
This commit is contained in:
parent
df3aa78d57
commit
f6ca36fa21
|
@ -28,7 +28,7 @@ public class FileWriterTest {
|
||||||
assertThat(
|
assertThat(
|
||||||
StreamUtils.getStringFromInputStream(
|
StreamUtils.getStringFromInputStream(
|
||||||
new FileInputStream(fileName)))
|
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
|
@After
|
||||||
|
|
|
@ -24,11 +24,11 @@ public class GuavaTest {
|
||||||
public void whenAppendToFileUsingGuava_thenCorrect() throws IOException {
|
public void whenAppendToFileUsingGuava_thenCorrect() throws IOException {
|
||||||
File file = new File(fileName);
|
File file = new File(fileName);
|
||||||
CharSink chs = Files.asCharSink(file, Charsets.UTF_8, FileWriteMode.APPEND);
|
CharSink chs = Files.asCharSink(file, Charsets.UTF_8, FileWriteMode.APPEND);
|
||||||
chs.write("Spain\n");
|
chs.write("Spain");
|
||||||
|
|
||||||
assertThat(StreamUtils.getStringFromInputStream(
|
assertThat(StreamUtils.getStringFromInputStream(
|
||||||
new FileInputStream(fileName)))
|
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
|
@After
|
||||||
|
|
Loading…
Reference in New Issue