KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > fjank > jcache > CacheGroupTest


1 /* Open Source Java Caching Service
2 * Copyright (C) 2002 Frank Karlstrøm
3 * This library is free software; you can redistribute it and/or
4 * modify it under the terms of the GNU Lesser General Public
5 * License as published by the Free Software Foundation; either
6 * version 2.1 of the License, or (at your option) any later version.
7 *
8 * This library is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 * Lesser General Public License for more details.
12 *
13 * You should have received a copy of the GNU Lesser General Public
14 * License along with this library; if not, write to the Free Software
15 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
16 *
17 * The author can be contacted by email: fjankk@users.sourceforge.net
18 */

19 package org.fjank.jcache;
20
21 import java.lang.ref.ReferenceQueue JavaDoc;
22 import junit.framework.TestCase;
23
24 /**JUnit test for CacheObjectGroup
25  * @author Frank Karlstrøm
26  */

27 public class CacheGroupTest extends TestCase {
28
29     public static void main(String JavaDoc[] args) {
30         junit.textui.TestRunner.run(CacheGroupTest.class);
31     }
32     /**
33      * @todo Implement testGet().
34      */

35     public final void testGet() {
36         //TODO Implement get().
37
}
38
39     /**
40      * @todo implement testPutObjectCacheObjectObject()
41      * Class under test for void put(Object, CacheObject, Object)
42      */

43     public final void testPutObjectCacheObjectObject() {
44         //TODO Implement put().
45
}
46
47     /**@todo implement testPutCacheGroup()
48      * Class under test for void put(CacheGroup)
49      */

50     public final void testPutCacheGroup() {
51         //TODO Implement put().
52
}
53     /**
54      * @todo implement testGetAttributes()
55      *
56      */

57     public final void testGetAttributes() {
58         //TODO Implement getAttributes().
59
}
60
61     /**@todo implement testReplaceObjectCacheObject()
62      * Class under test for CacheObject replace(Object, CacheObject)
63      */

64     public final void testReplaceObjectCacheObject() {
65         //TODO Implement replace().
66
}
67
68     /**@todo implement testReplaceObjectStringCacheObject()
69      * Class under test for CacheObject replace(Object, String, CacheObject)
70      */

71     public final void testReplaceObjectStringCacheObject() {
72         //TODO Implement replace().
73
}
74     /**
75      * @todo implement testInvalidate()
76      *
77      */

78     public final void testInvalidate() {
79         //TODO Implement invalidate().
80
}
81     /**
82      * @todo implement testDestroy()
83      *
84      */

85     public final void testDestroy() {
86         //TODO Implement destroy().
87
}
88     /**
89      * Test for contains.
90      * @throws Exception if any exceptions occur.
91      */

92     public final void testContains() throws Exception JavaDoc {
93         ReferenceQueue JavaDoc q = new ReferenceQueue JavaDoc();
94         CacheGroup group = new CacheGroup("testGroup", new AttributesImpl());
95         Object JavaDoc obj = new Object JavaDoc();
96         group.put("testName", new CacheObject("testName", obj, group, null, q), obj);
97         assertEquals(true, group.contains("testName"));
98         assertEquals(false, group.contains("testName1"));
99     }
100     /**
101      * @todo implement testRemoveMe()
102      *
103      */

104     public final void testRemoveMe() {
105         //TODO Implement removeMe().
106
}
107     /**
108      * @todo implement testGetCurrentSize()
109      *
110      */

111     public final void testGetCurrentSize() {
112         //TODO Implement getCurrentSize().
113
}
114     /**
115      * @todo implement testGetGroup()
116      *
117      */

118     public final void testGetGroup() {
119         //TODO Implement getGroup().
120
}
121     /**
122      * @todo implement testGetName()
123      *
124      */

125     public final void testGetName() {
126         //TODO Implement getName().
127
}
128     /**
129      * @todo implement testGetObjectCount()
130      *
131      */

132     public final void testGetObjectCount() {
133         //TODO Implement getObjectCount().
134
}
135     /**
136      * @todo implement testContainsValue()
137      *
138      */

139     public final void testContainsValue() {
140         //TODO Implement containsValue().
141
}
142     /**
143      * @todo implement testKeySet()
144      *
145      */

146     public final void testKeySet() {
147         //TODO Implement keySet().
148
}
149     /**
150      * @todo implement testValues()
151      *
152      */

153     public final void testValues() {
154         //TODO Implement values().
155
}
156     /**
157      * @todo implement testEntrySet()
158      *
159      */

160     public final void testEntrySet() {
161         //TODO Implement entrySet().
162
}
163
164 }
165
Popular Tags