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
13
14
15
16 public class CountedDumbPagedEnumerationTest extends PagedEnumerationSpec {
17
18
19
20
21 public CountedDumbPagedEnumerationTest(String name) {
22 super(name);
23 }
24
25
26
27
28
29 protected void setUp() throws Exception {
30 super.setUp();
31 }
32
33
34
35
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
50
51 public void testCountedDumbPagedEnumeration() {
52
53 }
54
55
56 }