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