1 package de.fu_berlin.ties.extract;
2
3 import junit.framework.TestCase;
4
5 import de.fu_berlin.ties.classify.Probability;
6 import de.fu_berlin.ties.extract.Extraction;
7 import de.fu_berlin.ties.text.TokenDetails;
8
9
10 /***
11 * Generated by JUnitDoclet, a tool provided by
12 * ObjectFab GmbH under LGPL.
13 * Please see www.junitdoclet.org, www.gnu.org
14 * and www.objectfab.de for informations about
15 * the tool, the licence and the authors.
16 */
17
18
19 public class ExtractionTest
20
21 extends TestCase
22
23 {
24
25 Extraction extraction = null;
26
27
28 public ExtractionTest(String name) {
29
30 super(name);
31
32 }
33
34 public de.fu_berlin.ties.extract.Extraction createInstance() throws Exception {
35
36 final TokenDetails details =
37 new TokenDetails("Dr. Weizenbaum", 2, 547, true);
38 final Probability prob = new Probability(0.89, 0.683);
39 return new Extraction("speaker", details, prob);
40
41 }
42
43 protected void setUp() throws Exception {
44
45 super.setUp();
46 extraction = createInstance();
47
48 }
49
50 protected void tearDown() throws Exception {
51
52 extraction = null;
53 super.tearDown();
54
55 }
56
57 public void testAddToken() throws Exception {
58
59
60 }
61
62 public void testEquals() throws Exception {
63
64
65 }
66
67 public void testGetFirstTokenRep() throws Exception {
68
69
70 }
71
72 public void testGetIndex() throws Exception {
73
74
75 }
76
77 public void testGetText() throws Exception {
78
79
80 }
81
82 public void testGetVisibleChars() throws Exception {
83
84
85 }
86
87 public void testHashCode() throws Exception {
88
89
90 }
91
92 public void testRemoveToken() throws Exception {
93
94
95 }
96
97 public void testSetIsFirstTokenRepIgnored() throws Exception {
98
99 boolean[] tests = {true, false};
100
101 for (int i = 0; i < tests.length; i++) {
102 extraction.setFirstTokenRepIgnored(tests[i]);
103 assertEquals(tests[i], extraction.isFirstTokenRepIgnored());
104 }
105
106 }
107
108 public void testSetIsSealed() throws Exception {
109
110 boolean[] tests = {true, false};
111
112 for (int i = 0; i < tests.length; i++) {
113 extraction.setSealed(tests[i]);
114 assertEquals(tests[i], extraction.isSealed());
115 }
116
117 }
118
119 public void testStoreFields() throws Exception {
120
121
122 }
123
124 public void testTokenCount() throws Exception {
125
126
127 }
128
129
130
131 /***
132 * JUnitDoclet moves marker to this method, if there is not match
133 * for them in the regenerated code and if the marker is not empty.
134 * This way, no test gets lost when regenerating after renaming.
135 * Method testVault is supposed to be empty.
136 */
137 public void testVault() throws Exception {
138
139
140 }
141
142 public static void main(String[] args) {
143
144 junit.textui.TestRunner.run(ExtractionTest.class);
145
146 }
147 }