01: /*
02: * Copyright 2004 The Apache Software Foundation
03: *
04: * Licensed under the Apache License, Version 2.0 (the "License");
05: * you may not use this file except in compliance with the License.
06: * You may obtain a copy of the License at
07: *
08: * http://www.apache.org/licenses/LICENSE-2.0
09: *
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;
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: 155406 $ $Date: 2005-02-26 12:55:26 +0000 (Sat, 26 Feb 2005) $
30: *
31: * @author Stephen Colebourne
32: */
33: public class TestMapBackedSet extends AbstractTestSet {
34:
35: public TestMapBackedSet(String 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 args[]) {
44: String[] testCaseName = { TestMapBackedSet.class.getName() };
45: junit.textui.TestRunner.main(testCaseName);
46: }
47:
48: public Set makeEmptySet() {
49: return MapBackedSet.decorate(new HashedMap());
50: }
51:
52: public String 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: }
|