1 package org.ozoneDB.collections; 8 9 import java.util.Collection ; 10 import java.util.TreeSet ; 11 import junit.framework.TestCase; 12 import junit.framework.TestSuite; 13 import junit.swingui.TestRunner; 14 import org.ozoneDB.OzonePersonalMetaData; 15 16 19 public class NodeTreeSetTest extends OzoneCollectionTest { 20 21 22 public NodeTreeSetTest(String name) { 23 super(name); 24 } 25 26 public static void main(String [] args) throws Exception { 27 TestRunner testRunner = new TestRunner(); 28 testRunner.run(NodeTreeSetTest.class); 29 } 30 31 protected Collection createRef() { 32 return new TreeSet (); 33 } 34 35 protected Collection createCmp() throws Exception { 36 return NodeTreeSetImplFactory.getDefault().create(); 37 } 38 39 43 protected Collection createCmp(String name) throws Exception { 44 OzonePersonalMetaData meta = new OzonePersonalMetaData(); 45 meta.setName(name); 46 return NodeTreeSetImplFactory.getDefault().create(meta, null); 47 } 48 49 } 50 | Popular Tags |