1 package de.fu_berlin.ties.demo;
2
3 import junit.framework.TestCase;
4
5 import de.fu_berlin.ties.TiesConfiguration;
6 import de.fu_berlin.ties.classify.Classifier;
7 import de.fu_berlin.ties.classify.Prediction;
8 import de.fu_berlin.ties.classify.PredictionDistribution;
9 import de.fu_berlin.ties.classify.Probability;
10 import de.fu_berlin.ties.text.TokenizingExtractor;
11
12
13 /***
14 * Generated by JUnitDoclet, a tool provided by
15 * ObjectFab GmbH under LGPL.
16 * Please see www.junitdoclet.org, www.gnu.org
17 * and www.objectfab.de for informations about
18 * the tool, the licence and the authors.
19 */
20
21
22 public class FilterResultTest
23
24 extends TestCase
25
26 {
27
28 FilterResult filterresult = null;
29
30
31 public FilterResultTest(String name) {
32
33 super(name);
34
35 }
36
37 public de.fu_berlin.ties.demo.FilterResult createInstance() throws Exception {
38
39 final PredictionDistribution predDist = new PredictionDistribution(
40 new Prediction("spam", new Probability(0.85)));
41 return new de.fu_berlin.ties.demo.FilterResult(predDist,
42 "This is a just a demo message",
43 new TokenizingExtractor(TiesConfiguration.CONF,
44 Classifier.CONFIG_CLASSIFIER), null);
45
46 }
47
48 protected void setUp() throws Exception {
49
50 super.setUp();
51 filterresult = createInstance();
52
53 }
54
55 protected void tearDown() throws Exception {
56
57 filterresult = null;
58 super.tearDown();
59
60 }
61
62 public void testGetPredictedClass() throws Exception {
63
64
65 }
66
67 public void testGetProbability() throws Exception {
68
69
70 }
71
72 public void testGetNonspamScore() throws Exception {
73
74
75 }
76
77 public void testGetSpamScore() throws Exception {
78
79
80 }
81
82 public void testToString() throws Exception {
83
84
85 }
86
87 public void testWriteBodyAttribute() throws Exception {
88
89
90 }
91
92 public void testWriteHTMLHead() throws Exception {
93
94
95 }
96
97 public void testWriteTestHTML() throws Exception {
98
99
100 }
101
102 public void testWriteVizualization() throws Exception {
103
104
105 }
106
107
108
109 /***
110 * JUnitDoclet moves marker to this method, if there is not match
111 * for them in the regenerated code and if the marker is not empty.
112 * This way, no test gets lost when regenerating after renaming.
113 * Method testVault is supposed to be empty.
114 */
115 public void testVault() throws Exception {
116
117
118 }
119
120 public static void main(String[] args) {
121
122 junit.textui.TestRunner.run(FilterResultTest.class);
123
124 }
125 }