1 package de.fu_berlin.ties.xml;
2
3 import junit.framework.TestCase;
4
5 import de.fu_berlin.ties.xml.OtherConstituent;
6
7
8 /***
9 * Generated by JUnitDoclet, a tool provided by
10 * ObjectFab GmbH under LGPL.
11 * Please see www.junitdoclet.org, www.gnu.org
12 * and www.objectfab.de for informations about
13 * the tool, the licence and the authors.
14 */
15
16
17 public class OtherConstituentTest
18
19 extends TestCase
20
21 {
22
23 de.fu_berlin.ties.xml.OtherConstituent otherconstituent = null;
24
25
26 public OtherConstituentTest(String name) {
27
28 super(name);
29
30 }
31
32 public de.fu_berlin.ties.xml.OtherConstituent createInstance() throws Exception {
33
34 return new de.fu_berlin.ties.xml.OtherConstituent(OtherConstituent.TEXT,
35 "This is a text fragment.");
36
37 }
38
39 protected void setUp() throws Exception {
40
41 super.setUp();
42 otherconstituent = createInstance();
43
44 }
45
46 protected void tearDown() throws Exception {
47
48 otherconstituent = null;
49 super.tearDown();
50
51 }
52
53 public void testToString() throws Exception {
54
55 assertTrue(otherconstituent.toString().matches(
56 ".*OtherConst.*representation=This.*//]"));
57 System.out.println();
58
59 }
60
61
62
63 /***
64 * JUnitDoclet moves marker to this method, if there is not match
65 * for them in the regenerated code and if the marker is not empty.
66 * This way, no test gets lost when regenerating after renaming.
67 * Method testVault is supposed to be empty.
68 */
69 public void testVault() throws Exception {
70
71
72 }
73
74 public static void main(String[] args) {
75
76 junit.textui.TestRunner.run(OtherConstituentTest.class);
77
78 }
79 }