public void testSplitNullString() { try { COMMA_SPLITTER.split(null); fail(); } catch (NullPointerException expected) { } }
public void testStringSplitWithEmptyString() { try { Splitter.on(""); fail(); } catch (IllegalArgumentException expected) { } }
private void assertIteratorIsUnmodifiable(Iterator<?> iterator) { iterator.next(); try { iterator.remove(); fail(); } catch (UnsupportedOperationException expected) { } }
public void testFixedLengthSplitZeroChunkLen() { try { Splitter.fixedLength(0); fail(); } catch (IllegalArgumentException expected) { } }
public void testInvalidZeroLimit() { try { COMMA_SPLITTER.limit(0); fail(); } catch (IllegalArgumentException expected) { } }
public void testMapSplitter_emptySeparator() { try { COMMA_SPLITTER.withKeyValueSeparator(""); fail(); } catch (IllegalArgumentException expected) { } }
@GwtIncompatible // java.util.regex.Pattern public void testPatternSplitInvalidPattern() { try { Splitter.on(Pattern.compile("a*")); fail(); } catch (IllegalArgumentException expected) { } }
public void testFixedLengthSplitNegativeChunkLen() { try { Splitter.fixedLength(-1); fail(); } catch (IllegalArgumentException expected) { } }
public void testMapSplitter_duplicateKeys() { try { COMMA_SPLITTER.withKeyValueSeparator(":").split("a:1,b:2,a:3"); fail(); } catch (IllegalArgumentException expected) { } }
public void testMapSplitter_malformedEntry() { try { COMMA_SPLITTER.withKeyValueSeparator("=").split("a=1,b,c=2"); fail(); } catch (IllegalArgumentException expected) { } }
public void testSplitNullString() { try { COMMA_SPLITTER.split(null); fail(); } catch (NullPointerException expected) { } }
public void testStringSplitWithEmptyString() { try { Splitter.on(""); fail(); } catch (IllegalArgumentException expected) { } }
private void assertIteratorIsUnmodifiable(Iterator<?> iterator) { iterator.next(); try { iterator.remove(); fail(); } catch (UnsupportedOperationException expected) { } }
public void testFixedLengthSplitNegativeChunkLen() { try { Splitter.fixedLength(-1); fail(); } catch (IllegalArgumentException expected) { } }
public void testFixedLengthSplitZeroChunkLen() { try { Splitter.fixedLength(0); fail(); } catch (IllegalArgumentException expected) { } }
@GwtIncompatible // java.util.regex.Pattern public void testPatternSplitInvalidPattern() { try { Splitter.on(Pattern.compile("a*")); fail(); } catch (IllegalArgumentException expected) { } }
public void testInvalidZeroLimit() { try { COMMA_SPLITTER.limit(0); fail(); } catch (IllegalArgumentException expected) { } }
public void testMapSplitter_emptySeparator() { try { COMMA_SPLITTER.withKeyValueSeparator(""); fail(); } catch (IllegalArgumentException expected) { } }
public void testMapSplitter_duplicateKeys() { try { COMMA_SPLITTER.withKeyValueSeparator(":").split("a:1,b:2,a:3"); fail(); } catch (IllegalArgumentException expected) { } } }
public void testMapSplitter_malformedEntry() { try { COMMA_SPLITTER.withKeyValueSeparator("=").split("a=1,b,c=2"); fail(); } catch (IllegalArgumentException expected) { } }