Merge pull request #4702 from eugenp/guava-splitter-fix
fix splitter pattern
This commit is contained in:
commit
de2afd7da8
|
@ -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"));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue