View Javadoc
1   package org.melati.poem.test;
2   
3   import org.melati.poem.StandardIntegrityFix;
4   import org.melati.poem.StandardIntegrityFix.NameUnrecognisedException;
5   
6   /**
7    * @author timp
8    * @since 29 Jan 2007
9    *
10   */
11  public class StandardIntegrityFixTest extends PoemTestCase {
12  
13    public StandardIntegrityFixTest(String name) {
14      super(name);
15    }
16  
17    protected void setUp() throws Exception {
18      super.setUp();
19    }
20  
21    protected void tearDown() throws Exception {
22      super.tearDown();
23    }
24  
25    /**
26     * Test method for {@link org.melati.poem.StandardIntegrityFix#getName()}.
27     */
28    public void testGetName() {
29      
30    }
31  
32    /**
33     * Test method for {@link org.melati.poem.StandardIntegrityFix#getIndex()}.
34     */
35    public void testGetIndex() {
36      
37    }
38  
39    /**
40     * Test method for {@link org.melati.poem.StandardIntegrityFix#referencesTo(org.melati.poem.Persistent, org.melati.poem.Column, java.util.Enumeration, java.util.Map)}.
41     */
42    public void testReferencesTo() {
43      
44    }
45  
46    /**
47     * Test method for {@link org.melati.poem.StandardIntegrityFix#forIndex(int)}.
48     */
49    public void testForIndex() {
50      
51    }
52  
53    /**
54     * Test method for {@link org.melati.poem.StandardIntegrityFix#count()}.
55     */
56    public void testCount() {
57      
58    }
59  
60    /**
61     * Test method for {@link org.melati.poem.StandardIntegrityFix#named(java.lang.String)}.
62     */
63    public void testNamed() {
64      StandardIntegrityFix fix = StandardIntegrityFix.named("delete");
65      assertEquals("delete",fix.getName());
66      try { 
67        fix = StandardIntegrityFix.named("unknown");
68        fail("Should have blown up");
69      } catch(NameUnrecognisedException e) { 
70        e = null;
71      }
72    }
73  
74    /**
75     * Test method for {@link org.melati.poem.StandardIntegrityFix#toString()}.
76     */
77    public void testToString() {
78      StandardIntegrityFix fix = StandardIntegrityFix.named("delete");
79      assertEquals("delete/0", fix.toString());
80    }
81  
82  }