KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > ozoneDB > collections > NodeTreeSetTest


1 // You can redistribute this software and/or modify it under the terms of
2
// the Ozone Library License version 1 published by ozone-db.org.
3
//
4
// This file is
5
// Copyright (C) 2003-@year@ Leo Mekenkamp. All rights reserved.
6
// $Id: FullTreeMap.java,v 1.3 2003/02/02 17:21:41 leomekenkamp Exp $
7
package org.ozoneDB.collections;
8
9 import java.util.Collection JavaDoc;
10 import java.util.TreeSet JavaDoc;
11 import junit.framework.TestCase;
12 import junit.framework.TestSuite;
13 import junit.swingui.TestRunner;
14 import org.ozoneDB.OzonePersonalMetaData;
15
16 /**
17  * @author <a HREF="mailto:ozoneATmekenkampD0Tcom">Leo Mekenkamp (mind the anti-sp@m)</a>
18  */

19 public class NodeTreeSetTest extends OzoneCollectionTest {
20     
21     /** Creates a new instance of FullTreeSetTest */
22     public NodeTreeSetTest(String JavaDoc name) {
23         super(name);
24     }
25     
26     public static void main(String JavaDoc[] args) throws Exception JavaDoc {
27         TestRunner testRunner = new TestRunner();
28         testRunner.run(NodeTreeSetTest.class);
29     }
30         
31     protected Collection JavaDoc createRef() {
32         return new TreeSet JavaDoc();
33     }
34     
35     protected Collection JavaDoc createCmp() throws Exception JavaDoc {
36         return NodeTreeSetImplFactory.getDefault().create();
37     }
38
39 // protected Collection createCmp1() {
40
// return new GnuTreeSet();
41
// }
42

43     protected Collection JavaDoc createCmp(String JavaDoc name) throws Exception JavaDoc {
44         OzonePersonalMetaData meta = new OzonePersonalMetaData();
45         meta.setName(name);
46         return NodeTreeSetImplFactory.getDefault().create(meta, null);
47     }
48     
49 }
50
Popular Tags