ValueList extends ArrayList<String> { public static String toString(List<?> data, String separator) { StringBuilder buffer; Iterator<?> values; buffer = new StringBuilder(); values = data.iterator(); if(values.hasNext()) buffer.append(values.next().toString()); while(values.hasNext()) { buffer.append(separator); buffer.append(values.next().toString()); } return buffer.toString(); } ValueList(String data, String separator); String valueAt(int index); int integerValueAt(int index); float floatValueAt(int index); double doubleValueAt(int index); long longValueAt(int index); boolean booleanValueAt(int index); ValueList listValueAt(int index, String separator); ValueIterator valueIterator(); static String toString(List<?> data, String separator);  }
@Test public void testStringValues() { testStringValues(new ValueList(ValueList.toString(createIntegerData(), ";"), ";")); }
@Test public void testIntegerValues() { testIntegerValues(new ValueList(ValueList.toString(createIntegerData(), ";"), ";")); }
@Test public void testLongValues() { testLongValues(new ValueList(ValueList.toString(createIntegerData(), ";"), ";")); }
@Test public void testFloatValues() { testFloatValues(new ValueList(ValueList.toString(createFloatData(), ";"), ";")); }
@Test public void testDoubleValues() { testDoubleValues(new ValueList(ValueList.toString(createFloatData(), ";"), ";")); }
@Test public void testBooleanValues() { testBooleanValues(new ValueList(ValueList.toString(createBooleanData(), ";"), ";")); }
@Test public void testListValues() { Vector<String> data; data = new Vector<String>(); data.add(ValueList.toString(createIntegerData(), ";")); data.add(ValueList.toString(createIntegerData(), ";")); data.add(ValueList.toString(createIntegerData(), ";")); data.add(ValueList.toString(createFloatData(), ";")); data.add(ValueList.toString(createFloatData(), ";")); data.add(ValueList.toString(createBooleanData(), ";")); testListValues(new ValueList(ValueList.toString(data, " - "), " - ") , ";"); }