View Javadoc
1   /**
2    * 
3    */
4   package org.melati.util.test;
5   
6   import java.util.Vector;
7   
8   import org.melati.util.CountedDumbPagedEnumeration;
9   import org.melati.util.PagedEnumeration;
10  
11  /**
12   * @author timp
13   * @since 13 Jun 2007
14   *
15   */
16  public class CountedDumbPagedEnumerationTest extends PagedEnumerationSpec {
17  
18    /**
19     * @param name
20     */
21    public CountedDumbPagedEnumerationTest(String name) {
22      super(name);
23    }
24  
25    /** 
26     * {@inheritDoc}
27     * @see org.melati.poem.util.test.PagedEnumerationSpec#setUp()
28     */
29    protected void setUp() throws Exception {
30      super.setUp();
31    }
32  
33    /** 
34     * {@inheritDoc}
35     * @see org.melati.poem.util.test.PagedEnumerationSpec#tearDown()
36     */
37    protected void tearDown() throws Exception {
38      super.tearDown();
39    }
40    
41    protected PagedEnumeration<Integer> getObjectUnderTest() {
42      Vector<Integer> them = new Vector<Integer>();
43      for (int i = 0; i < 30; i++)
44        them.add(new Integer(i));
45      return new CountedDumbPagedEnumeration<Integer>(them.elements(), 3, 10, 25);
46    }
47  
48    /**
49     * Test method for {@link org.melati.poem.util.CountedDumbPagedEnumeration#CountedDumbPagedEnumeration(java.util.Enumeration, int, int, int)}.
50     */
51    public void testCountedDumbPagedEnumeration() {
52  
53    }
54  
55  
56  }