1 package org.apache.turbine.util.pool;
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19 import junit.framework.TestSuite;
20
21 import org.apache.turbine.test.BaseTestCase;
22
23 /***
24 * test whether the Default parameter parser returns its uploaded file items
25 * in the keySet().
26 *
27 * @author <a href="mailto:hps@intermeta.de">Henning P. Schmiedehausen</a>
28 * @version $Id: RecyclableSupportTest.java 293298 2005-10-03 10:50:07Z henning $
29 */
30
31 public class RecyclableSupportTest
32 extends BaseTestCase
33 {
34 public RecyclableSupportTest(String name)
35 throws Exception
36 {
37 super(name);
38 }
39
40 public static TestSuite suite()
41 {
42 return new TestSuite(RecyclableSupportTest.class);
43 }
44
45 public void testRecyclableSupport()
46 {
47 RecyclableSupport rs = new RecyclableSupport();
48
49 assertFalse(rs.isDisposed());
50
51 rs.dispose();
52
53 assertTrue(rs.isDisposed());
54
55 rs.recycle();
56
57 assertFalse(rs.isDisposed());
58 }
59 }