1 package de.fu_berlin.ties.classify;
2
3 import junit.framework.TestCase;
4
5 import de.fu_berlin.ties.eval.EvalStatus;
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 PredictionTest
18
19 extends TestCase
20
21 {
22
23 Prediction prediction = null;
24
25
26 public PredictionTest(String name) {
27
28 super(name);
29
30 }
31
32 public de.fu_berlin.ties.classify.Prediction createInstance() throws Exception {
33
34 return new de.fu_berlin.ties.classify.Prediction("speaker",
35 new Probability(0.83, 0.689));
36
37 }
38
39 protected void setUp() throws Exception {
40
41 super.setUp();
42 prediction = createInstance();
43
44 }
45
46 protected void tearDown() throws Exception {
47
48 prediction = null;
49 super.tearDown();
50
51 }
52
53 public void testEquals() throws Exception {
54
55
56 }
57
58 public void testGetProbability() throws Exception {
59
60
61 }
62
63 public void testGetType() throws Exception {
64
65
66 }
67
68 public void testHashCode() throws Exception {
69
70
71 }
72
73 public void testSetGetEvalStatus() throws Exception {
74
75 de.fu_berlin.ties.eval.EvalStatus[] tests = {EvalStatus.UNKNOWN,
76 EvalStatus.MISSING, null};
77
78 for (int i = 0; i < tests.length; i++) {
79 prediction.setEvalStatus(tests[i]);
80 assertEquals(tests[i], prediction.getEvalStatus());
81 }
82
83 }
84
85 public void testSetGetSource() throws Exception {
86
87 java.lang.String[] tests = {"", " ", "a", "A", "?", "?", "0123456789", "012345678901234567890", "\n", null};
88
89 for (int i = 0; i < tests.length; i++) {
90 prediction.setSource(tests[i]);
91 assertEquals(tests[i], prediction.getSource());
92 }
93
94 }
95
96 public void testStoreFields() throws Exception {
97
98
99 }
100
101
102
103 /***
104 * JUnitDoclet moves marker to this method, if there is not match
105 * for them in the regenerated code and if the marker is not empty.
106 * This way, no test gets lost when regenerating after renaming.
107 * Method testVault is supposed to be empty.
108 */
109 public void testVault() throws Exception {
110
111
112 }
113
114 public static void main(String[] args) {
115
116 junit.textui.TestRunner.run(PredictionTest.class);
117
118 }
119 }