CSVRETestpublic class CSVRETest extends TestCase
Fields Summary |
---|
CSVRE | target |
Methods Summary |
---|
public void | testAllUnQuoted()
List list = target.parse("a,b,c");
assertEquals(3, list.size());
assertEquals("a", list.get(0));
assertEquals("b", list.get(1));
assertEquals("c", list.get(2));
| public void | testCanonical()
List list = target.parse("\"a\",\"b\",\"c\"");
assertEquals(3, list.size());
assertEquals("a", list.get(0));
assertEquals("b", list.get(1));
assertEquals("c", list.get(2));
| public void | testMixedField()
List list = target.parse("\"LU\",86.25|\"11/4/1998\"|\"2:19PM\"|+4.0625");
assertEquals(2, list.size());
| public void | testNotAllQuoted()
List list = target.parse("\"a\",b,\"c\"");
assertEquals(3, list.size());
assertEquals("a", list.get(0));
assertEquals("b", list.get(1));
assertEquals("c", list.get(2));
| public void | testNullField()
List list = target.parse("\"a\",,\"c\"");
assertEquals(3, list.size());
assertEquals("a", list.get(0));
assertEquals(null, list.get(1));
assertEquals("c", list.get(2));
|
|