Skip to content

Commit df3aa78

Browse files
author
Ahmed Tawila
committed
fix test failure
1 parent 0ffa8c6 commit df3aa78

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎core-java/src/test/java/com/baeldung/file/GuavaTest.java‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@ public class GuavaTest {
2121
public static final String fileName = "src/main/resources/countries.txt";
2222

2323
@Test
24-
public void whenAppendToFileUsingFileWriter_thenCorrect() throws IOException {
24+
public void whenAppendToFileUsingGuava_thenCorrect() throws IOException {
2525
File file = new File(fileName);
2626
CharSink chs = Files.asCharSink(file, Charsets.UTF_8, FileWriteMode.APPEND);
27-
chs.write("Spain\r\n");
27+
chs.write("Spain\n");
2828

2929
assertThat(StreamUtils.getStringFromInputStream(
3030
new FileInputStream(fileName)))

0 commit comments

Comments
 (0)