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