FileDocCategorySizeDatePackage
CSVRETest.javaAPI DocExample1224Sun Apr 25 15:43:32 BST 2004None

CSVRETest

public class CSVRETest extends TestCase
name - purpose
version
$Id: CSVRETest.java,v 1.3 2004/04/25 19:43:32 ian Exp $

Fields Summary
CSVRE
target
Constructors Summary
Methods Summary
public voidtestAllUnQuoted()

		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 voidtestCanonical()

	
	   
		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 voidtestMixedField()

		List list = target.parse("\"LU\",86.25|\"11/4/1998\"|\"2:19PM\"|+4.0625");
		assertEquals(2, list.size());
	
public voidtestNotAllQuoted()

		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 voidtestNullField()

		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));