View Javadoc
1   package org.melati.poem.test;
2   
3   import org.melati.poem.SizedAtomPoemType;
4   
5   /**
6    * @author timp
7    * @since 30 Dec 2006
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     * Test method for {@link org.melati.poem.SizedAtomPoemType#
30     * SizedAtomPoemType(int, java.lang.String, boolean, int)}.
31     */
32    public void testSizedAtomPoemType() {
33    }
34  
35    /**
36     * Test method for {@link org.melati.poem.SizedAtomPoemType#getSize()}.
37     */
38    public void testGetSize() {
39      ((SizedAtomPoemType<T>)it).getSize();
40    }
41  
42    /**
43     * Test method for {@link org.melati.poem.SizedAtomPoemType#withSize(int)}.
44     */
45    public void testWithSize() {
46      int currentSize = ((SizedAtomPoemType<T>)it).getSize();
47      assertEquals(it, ((SizedAtomPoemType<T>)it).withSize(currentSize));
48    }
49  
50    /**
51     * Test method for {@link org.melati.poem.SizedAtomPoemType#
52     * sizeGreaterEqual(int, int)}.
53     */
54    public void testSizeGreaterEqual() {
55      int currentSize = ((SizedAtomPoemType<T>)it).getSize();
56      assertTrue(SizedAtomPoemType.sizeGreaterEqual(currentSize, currentSize));
57    }
58  
59  }