assertEquals("c", line[2]);
assertEquals("", line[3]);
}
public void testEmptyLine() throws Exception {
DelimitedLineTokenizer tokenizer = new DelimitedLineTokenizer();
String[] line = tokenizer.tokenize("");
assertEquals(0, line.length);
line = tokenizer.tokenize(" ");
// whitespace counts as text
assertEquals(1, line.length);
line = tokenizer.tokenize(null);
// null doesn't...
assertEquals(0, line.length);
}