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.demo.SpamFilterDemo;
7   // JUnitDoclet end import
8   
9   /***
10  * Generated by JUnitDoclet, a tool provided by
11  * ObjectFab GmbH under LGPL.
12  * Please see www.junitdoclet.org, www.gnu.org
13  * and www.objectfab.de for informations about
14  * the tool, the licence and the authors.
15  */
16  
17  
18  public class SpamFilterDemoTest
19  // JUnitDoclet begin extends_implements
20  extends TestCase
21  // JUnitDoclet end extends_implements
22  {
23    // JUnitDoclet begin class
24      final SpamFilterDemo spamfilterdemo;
25    // JUnitDoclet end class
26    
27    public SpamFilterDemoTest(String name) {
28      // JUnitDoclet begin method SpamFilterDemoTest
29      super(name);
30      // reduce number of features to limit memory usage
31      TiesConfiguration.CONF.setProperty("classifier.winnow.features", 600000);
32      // init object here instead of in setUp method to avoid cost of repeted
33      // retraining from scratch
34      spamfilterdemo = null;
35      // JUnitDoclet end method SpamFilterDemoTest
36    }
37    
38    public de.fu_berlin.ties.demo.SpamFilterDemo createInstance() throws Exception {
39      // JUnitDoclet begin method testcase.createInstance
40      return null;
41      // JUnitDoclet end method testcase.createInstance
42    }
43    
44    protected void setUp() throws Exception {
45      // JUnitDoclet begin method testcase.setUp
46      super.setUp();
47  //    spamfilterdemo = createInstance();
48      // JUnitDoclet end method testcase.setUp
49    }
50    
51    protected void tearDown() throws Exception {
52      // JUnitDoclet begin method testcase.tearDown
53  //    spamfilterdemo = null;
54      super.tearDown();
55      // JUnitDoclet end method testcase.tearDown
56    }
57    
58    public void testMain() throws Exception {
59      // JUnitDoclet begin method main
60      // JUnitDoclet end method main
61    }
62    
63    public void testClassify() throws Exception {
64      // JUnitDoclet begin method classify
65      // JUnitDoclet end method classify
66    }
67    
68    public void testClearModel() throws Exception {
69      // JUnitDoclet begin method clearModel
70      // JUnitDoclet end method clearModel
71    }
72    
73    public void testGetTestSet() throws Exception {
74      // JUnitDoclet begin method getTestSet
75      // JUnitDoclet end method getTestSet
76    }
77    
78    public void testGetTrainingSet() throws Exception {
79      // JUnitDoclet begin method getTrainingSet
80      // JUnitDoclet end method getTrainingSet
81    }
82    
83    public void testReloadModel() throws Exception {
84      // JUnitDoclet begin method reloadModel
85      // JUnitDoclet end method reloadModel
86    }
87    
88    public void testToString() throws Exception {
89      // JUnitDoclet begin method toString
90      // JUnitDoclet end method toString
91    }
92    
93    public void testTrainNonspam() throws Exception {
94      // JUnitDoclet begin method trainNonspam
95      // JUnitDoclet end method trainNonspam
96    }
97    
98    public void testTrainSpam() throws Exception {
99      // JUnitDoclet begin method trainSpam
100     // JUnitDoclet end method trainSpam
101   }
102   
103   
104   
105   /***
106   * JUnitDoclet moves marker to this method, if there is not match
107   * for them in the regenerated code and if the marker is not empty.
108   * This way, no test gets lost when regenerating after renaming.
109   * Method testVault is supposed to be empty.
110   */
111   public void testVault() throws Exception {
112     // JUnitDoclet begin method testcase.testVault
113     // JUnitDoclet end method testcase.testVault
114   }
115   
116   public static void main(String[] args) {
117     // JUnitDoclet begin method testcase.main
118     junit.textui.TestRunner.run(SpamFilterDemoTest.class);
119     // JUnitDoclet end method testcase.main
120   }
121 }