1   package de.fu_berlin.ties.eval;
2   
3   import junit.framework.TestCase;
4   // JUnitDoclet begin import
5   import java.util.SortedSet;
6   import java.util.TreeSet;
7   
8   import de.fu_berlin.ties.eval.Mistake;
9   import de.fu_berlin.ties.eval.Mistake.MistakeTypes;
10  import de.fu_berlin.ties.extract.Extraction;
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 MistakeTest
23  // JUnitDoclet begin extends_implements
24  extends TestCase
25  // JUnitDoclet end extends_implements
26  {
27    // JUnitDoclet begin class
28    Mistake mistake = null;
29    // JUnitDoclet end class
30    
31    public MistakeTest(String name) {
32      // JUnitDoclet begin method MistakeTest
33      super(name);
34      // JUnitDoclet end method MistakeTest
35    }
36    
37    public de.fu_berlin.ties.eval.Mistake createInstance() throws Exception {
38      // JUnitDoclet begin method testcase.createInstance
39      final SortedSet<MistakeTypes>  mistakeSet = new TreeSet<MistakeTypes>();
40      mistakeSet.add(MistakeTypes.CompletelyMissing);
41      return new Mistake(new Extraction("speaker", "Dr. No"), null, mistakeSet,
42  		    "bond-007");
43      // JUnitDoclet end method testcase.createInstance
44    }
45    
46    protected void setUp() throws Exception {
47      // JUnitDoclet begin method testcase.setUp
48      super.setUp();
49      mistake = createInstance();
50      // JUnitDoclet end method testcase.setUp
51    }
52    
53    protected void tearDown() throws Exception {
54      // JUnitDoclet begin method testcase.tearDown
55      mistake = null;
56      super.tearDown();
57      // JUnitDoclet end method testcase.tearDown
58    }
59    
60    public void testFlatten() throws Exception {
61      // JUnitDoclet begin method flatten
62      // JUnitDoclet end method flatten
63    }
64    
65    public void testConfusionType() throws Exception {
66      // JUnitDoclet begin method confusionType
67      // JUnitDoclet end method confusionType
68    }
69    
70    public void testGetAnswerKey() throws Exception {
71      // JUnitDoclet begin method getAnswerKey
72      // JUnitDoclet end method getAnswerKey
73    }
74    
75    public void testGetMistakes() throws Exception {
76      // JUnitDoclet begin method getMistakes
77      // JUnitDoclet end method getMistakes
78    }
79    
80    public void testGetPrediction() throws Exception {
81      // JUnitDoclet begin method getPrediction
82      // JUnitDoclet end method getPrediction
83    }
84    
85    public void testGetSource() throws Exception {
86      // JUnitDoclet begin method getSource
87      // JUnitDoclet end method getSource
88    }
89    
90    public void testToString() throws Exception {
91      // JUnitDoclet begin method toString
92      // JUnitDoclet end method toString
93    }
94    
95    
96    
97    /***
98    * JUnitDoclet moves marker to this method, if there is not match
99    * for them in the regenerated code and if the marker is not empty.
100   * This way, no test gets lost when regenerating after renaming.
101   * Method testVault is supposed to be empty.
102   */
103   public void testVault() throws Exception {
104     // JUnitDoclet begin method testcase.testVault
105     // JUnitDoclet end method testcase.testVault
106   }
107   
108   public static void main(String[] args) {
109     // JUnitDoclet begin method testcase.main
110     junit.textui.TestRunner.run(MistakeTest.class);
111     // JUnitDoclet end method testcase.main
112   }
113 }