1 17 18 package org.apache.geronimo.common.propertyeditor; 19 20 import java.util.Collection ; 21 import java.util.List ; 22 import java.util.LinkedList ; 23 24 29 public class ListEditorTest extends AbstractCollectionEditorTest { 30 31 protected void setUp() { 32 editor = PropertyEditors.findEditor(List .class); 33 ordered = true; 34 } 35 36 public void testEditorClass() throws Exception { 37 assertEquals(ListEditor.class, editor.getClass()); 38 } 39 40 protected void checkType(Object output) { 41 assertTrue("editor returned a: " + output.getClass(), output instanceof List ); 42 } 43 44 protected Collection createCollection() { 45 return new LinkedList (); 46 } 47 } 48 | Popular Tags |