Merge pull request #4702 from eugenp/guava-splitter-fix

fix splitter pattern
This commit is contained in:
Loredana Crusoveanu 2018-07-14 11:20:19 +03:00 committed by GitHub
commit de2afd7da8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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"));
}