KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > commons > collections > set > TestMapBackedSet


1 /*
2  * Copyright 2004 The Apache Software Foundation
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */

16 package org.apache.commons.collections.set;
17
18 import java.util.Set JavaDoc;
19
20 import junit.framework.Test;
21 import junit.framework.TestSuite;
22
23 import org.apache.commons.collections.map.HashedMap;
24
25 /**
26  * JUnit test.
27  *
28  * @since Commons Collections 3.1
29  * @version $Revision: 1.2 $ $Date: 2004/06/02 22:12:14 $
30  *
31  * @author Stephen Colebourne
32  */

33 public class TestMapBackedSet extends AbstractTestSet {
34
35     public TestMapBackedSet(String JavaDoc testName) {
36         super(testName);
37     }
38
39     public static Test suite() {
40         return new TestSuite(TestMapBackedSet.class);
41     }
42
43     public static void main(String JavaDoc args[]) {
44         String JavaDoc[] testCaseName = { TestMapBackedSet.class.getName()};
45         junit.textui.TestRunner.main(testCaseName);
46     }
47
48     public Set JavaDoc makeEmptySet() {
49         return MapBackedSet.decorate(new HashedMap());
50     }
51
52     public String JavaDoc getCompatibilityVersion() {
53         return "3.1";
54     }
55
56 // public void testCreate() throws Exception {
57
// resetEmpty();
58
// writeExternalFormToDisk((java.io.Serializable) collection, "D:/dev/collections/data/test/MapBackedSet.emptyCollection.version3.1.obj");
59
// resetFull();
60
// writeExternalFormToDisk((java.io.Serializable) collection, "D:/dev/collections/data/test/MapBackedSet.fullCollection.version3.1.obj");
61
// }
62

63 }
64
Popular Tags