1 package org.melati.poem.test;
2
3 import org.melati.poem.StandardIntegrityFix;
4 import org.melati.poem.StandardIntegrityFix.NameUnrecognisedException;
5
6
7
8
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
27
28 public void testGetName() {
29
30 }
31
32
33
34
35 public void testGetIndex() {
36
37 }
38
39
40
41
42 public void testReferencesTo() {
43
44 }
45
46
47
48
49 public void testForIndex() {
50
51 }
52
53
54
55
56 public void testCount() {
57
58 }
59
60
61
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
76
77 public void testToString() {
78 StandardIntegrityFix fix = StandardIntegrityFix.named("delete");
79 assertEquals("delete/0", fix.toString());
80 }
81
82 }