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.MetaClassifier;
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 MetaClassifierTest
22  // JUnitDoclet begin extends_implements
23  extends TestCase
24  // JUnitDoclet end extends_implements
25  {
26    // JUnitDoclet begin class
27    MetaClassifier metaclassifier = null;
28    // JUnitDoclet end class
29    
30    public MetaClassifierTest(String name) {
31      // JUnitDoclet begin method MetaClassifierTest
32      super(name);
33      // JUnitDoclet end method MetaClassifierTest
34    }
35    
36    public de.fu_berlin.ties.classify.MetaClassifier 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 MetaClassifier(classes, null, null,
43                new String[] {"Multi", "Winnow"}, 2, new String[] {"Winnow"},
44                null, TiesConfiguration.CONF);
45      // JUnitDoclet end method testcase.createInstance
46    }
47    
48    protected void setUp() throws Exception {
49      // JUnitDoclet begin method testcase.setUp
50      super.setUp();
51      metaclassifier = createInstance();
52      // JUnitDoclet end method testcase.setUp
53    }
54    
55    protected void tearDown() throws Exception {
56      // JUnitDoclet begin method testcase.tearDown
57      metaclassifier = null;
58      super.tearDown();
59      // JUnitDoclet end method testcase.tearDown
60    }
61    
62    public void testDestroy() throws Exception {
63      // JUnitDoclet begin method destroy
64      // JUnitDoclet end method destroy
65    }
66    
67    public void testReset() throws Exception {
68      // JUnitDoclet begin method reset
69      // JUnitDoclet end method reset
70    }
71    
72    public void testToElement() throws Exception {
73      // JUnitDoclet begin method toElement
74      // JUnitDoclet end method toElement
75    }
76    
77    public void testToString() throws Exception {
78      // JUnitDoclet begin method toString
79      // JUnitDoclet end method toString
80    }
81    
82    
83    
84    /***
85    * JUnitDoclet moves marker to this method, if there is not match
86    * for them in the regenerated code and if the marker is not empty.
87    * This way, no test gets lost when regenerating after renaming.
88    * Method testVault is supposed to be empty.
89    */
90    public void testVault() throws Exception {
91      // JUnitDoclet begin method testcase.testVault
92      // JUnitDoclet end method testcase.testVault
93    }
94    
95    public static void main(String[] args) {
96      // JUnitDoclet begin method testcase.main
97      junit.textui.TestRunner.run(MetaClassifierTest.class);
98      // JUnitDoclet end method testcase.main
99    }
100 }