fix splitter pattern

This commit is contained in:
Loredana Crusoveanu 2018-07-13 17:24:45 +03:00
parent 2022b7f994
commit 9e2f9b7e29
1 changed files with 1 additions and 1 deletions

View File

@ -92,7 +92,7 @@ public class GuavaStringUnitTest {
@Test
public void whenSplitStringOnMultipleSeparator_thenSplit() {
final String input = "apple.banana,,orange,,.";
final List<String> result = Splitter.onPattern("[.|,]").omitEmptyStrings().splitToList(input);
final List<String> result = Splitter.onPattern("[.,]").omitEmptyStrings().splitToList(input);
assertThat(result, contains("apple", "banana", "orange"));
}