1   package de.fu_berlin.ties.demo;
2   
3   import junit.framework.TestCase;
4   // JUnitDoclet begin import
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  // JUnitDoclet end import
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  // JUnitDoclet begin extends_implements
24  extends TestCase
25  // JUnitDoclet end extends_implements
26  {
27    // JUnitDoclet begin class
28    FilterResult filterresult = null;
29    // JUnitDoclet end class
30    
31    public FilterResultTest(String name) {
32      // JUnitDoclet begin method FilterResultTest
33      super(name);
34      // JUnitDoclet end method FilterResultTest
35    }
36    
37    public de.fu_berlin.ties.demo.FilterResult createInstance() throws Exception {
38      // JUnitDoclet begin method testcase.createInstance
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      // JUnitDoclet end method testcase.createInstance
46    }
47    
48    protected void setUp() throws Exception {
49      // JUnitDoclet begin method testcase.setUp
50      super.setUp();
51      filterresult = createInstance();
52      // JUnitDoclet end method testcase.setUp
53    }
54    
55    protected void tearDown() throws Exception {
56      // JUnitDoclet begin method testcase.tearDown
57      filterresult = null;
58      super.tearDown();
59      // JUnitDoclet end method testcase.tearDown
60    }
61    
62    public void testGetPredictedClass() throws Exception {
63      // JUnitDoclet begin method getPredictedClass
64      // JUnitDoclet end method getPredictedClass
65    }
66    
67    public void testGetProbability() throws Exception {
68      // JUnitDoclet begin method getProbability
69      // JUnitDoclet end method getProbability
70    }
71    
72    public void testGetNonspamScore() throws Exception {
73      // JUnitDoclet begin method getNonspamScore
74      // JUnitDoclet end method getNonspamScore
75    }
76    
77    public void testGetSpamScore() throws Exception {
78      // JUnitDoclet begin method getSpamScore
79      // JUnitDoclet end method getSpamScore
80    }
81    
82    public void testToString() throws Exception {
83      // JUnitDoclet begin method toString
84      // JUnitDoclet end method toString
85    }
86    
87    public void testWriteBodyAttribute() throws Exception {
88      // JUnitDoclet begin method writeBodyAttribute
89      // JUnitDoclet end method writeBodyAttribute
90    }
91    
92    public void testWriteHTMLHead() throws Exception {
93      // JUnitDoclet begin method writeHTMLHead
94      // JUnitDoclet end method writeHTMLHead
95    }
96    
97    public void testWriteTestHTML() throws Exception {
98      // JUnitDoclet begin method writeTestHTML
99      // JUnitDoclet end method writeTestHTML
100   }
101   
102   public void testWriteVizualization() throws Exception {
103     // JUnitDoclet begin method writeVizualization
104     // JUnitDoclet end method writeVizualization
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     // JUnitDoclet begin method testcase.testVault
117     // JUnitDoclet end method testcase.testVault
118   }
119   
120   public static void main(String[] args) {
121     // JUnitDoclet begin method testcase.main
122     junit.textui.TestRunner.run(FilterResultTest.class);
123     // JUnitDoclet end method testcase.main
124   }
125 }