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