KickJava   Java API By Example, From Geeks To Geeks.

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


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: FullTreeSetTest.java,v 1.1 2003/02/16 20:25:45 leomekenkamp Exp $
7

8 package org.ozoneDB.collections;
9
10 import java.util.Collection JavaDoc;
11 import java.util.TreeSet JavaDoc;
12 import junit.framework.TestCase;
13 import junit.framework.TestSuite;
14 import junit.swingui.TestRunner;
15 import org.ozoneDB.OzonePersonalMetaData;
16
17 /**
18  * @author <a HREF="mailto:ozoneATmekenkampD0Tcom">Leo Mekenkamp (mind the anti-sp@m)</a>
19  */

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

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