1 package org.melati.poem.test;
2
3 import org.melati.poem.SizedAtomPoemType;
4
5
6
7
8
9
10 public abstract class SizedAtomPoemTypeSpec<T> extends SQLPoemTypeSpec<T> {
11
12 public SizedAtomPoemTypeSpec() {
13 super();
14 }
15
16 public SizedAtomPoemTypeSpec(String name) {
17 super(name);
18 }
19
20 protected void setUp() throws Exception {
21 super.setUp();
22 }
23
24 protected void tearDown() throws Exception {
25 super.tearDown();
26 }
27
28
29
30
31
32 public void testSizedAtomPoemType() {
33 }
34
35
36
37
38 public void testGetSize() {
39 ((SizedAtomPoemType<T>)it).getSize();
40 }
41
42
43
44
45 public void testWithSize() {
46 int currentSize = ((SizedAtomPoemType<T>)it).getSize();
47 assertEquals(it, ((SizedAtomPoemType<T>)it).withSize(currentSize));
48 }
49
50
51
52
53
54 public void testSizeGreaterEqual() {
55 int currentSize = ((SizedAtomPoemType<T>)it).getSize();
56 assertTrue(SizedAtomPoemType.sizeGreaterEqual(currentSize, currentSize));
57 }
58
59 }