1   package de.fu_berlin.ties.classify;
2   
3   import junit.framework.TestCase;
4   // JUnitDoclet begin import
5   import java.util.HashSet;
6   import java.util.Set;
7   
8   import de.fu_berlin.ties.TiesConfiguration;
9   import de.fu_berlin.ties.classify.TieClassifier;
10  // JUnitDoclet end import
11  
12  /***
13  * Generated by JUnitDoclet, a tool provided by
14  * ObjectFab GmbH under LGPL.
15  * Please see www.junitdoclet.org, www.gnu.org
16  * and www.objectfab.de for informations about
17  * the tool, the licence and the authors.
18  */
19  
20  
21  public class TieClassifierTest
22  // JUnitDoclet begin extends_implements
23  extends TestCase
24  // JUnitDoclet end extends_implements
25  {
26    // JUnitDoclet begin class
27    TieClassifier tieclassifier = null;
28    // JUnitDoclet end class
29    
30    public TieClassifierTest(String name) {
31      // JUnitDoclet begin method TieClassifierTest
32      super(name);
33      // JUnitDoclet end method TieClassifierTest
34    }
35    
36    public de.fu_berlin.ties.classify.TieClassifier createInstance() throws Exception {
37      // JUnitDoclet begin method testcase.createInstance
38      final Set<String> classes = new HashSet<String>();
39      classes.add("A");
40      classes.add("B");
41      classes.add("C");
42      return new TieClassifier(classes, null, null,
43              new String[] {"Multi", "Winnow"}, 2, 0.99, TiesConfiguration.CONF);
44      // JUnitDoclet end method testcase.createInstance
45    }
46    
47    protected void setUp() throws Exception {
48      // JUnitDoclet begin method testcase.setUp
49      super.setUp();
50      tieclassifier = createInstance();
51      // JUnitDoclet end method testcase.setUp
52    }
53    
54    protected void tearDown() throws Exception {
55      // JUnitDoclet begin method testcase.tearDown
56      tieclassifier = null;
57      super.tearDown();
58      // JUnitDoclet end method testcase.tearDown
59    }
60    
61    public void testDestroy() throws Exception {
62      // JUnitDoclet begin method destroy
63      // JUnitDoclet end method destroy
64    }
65    
66    public void testReset() throws Exception {
67      // JUnitDoclet begin method reset
68      // JUnitDoclet end method reset
69    }
70    
71    public void testToElement() throws Exception {
72      // JUnitDoclet begin method toElement
73      // JUnitDoclet end method toElement
74    }
75    
76    public void testToString() throws Exception {
77      // JUnitDoclet begin method toString
78      // JUnitDoclet end method toString
79    }
80    
81    
82    
83    /***
84    * JUnitDoclet moves marker to this method, if there is not match
85    * for them in the regenerated code and if the marker is not empty.
86    * This way, no test gets lost when regenerating after renaming.
87    * Method testVault is supposed to be empty.
88    */
89    public void testVault() throws Exception {
90      // JUnitDoclet begin method testcase.testVault
91      // JUnitDoclet end method testcase.testVault
92    }
93    
94    public static void main(String[] args) {
95      // JUnitDoclet begin method testcase.main
96      junit.textui.TestRunner.run(TieClassifierTest.class);
97      // JUnitDoclet end method testcase.main
98    }
99  }