1   package de.fu_berlin.ties.classify;
2   
3   import junit.framework.TestCase;
4   // JUnitDoclet begin import
5   import de.fu_berlin.ties.eval.EvalStatus;
6   // JUnitDoclet end import
7   
8   /***
9   * Generated by JUnitDoclet, a tool provided by
10  * ObjectFab GmbH under LGPL.
11  * Please see www.junitdoclet.org, www.gnu.org
12  * and www.objectfab.de for informations about
13  * the tool, the licence and the authors.
14  */
15  
16  
17  public class PredictionTest
18  // JUnitDoclet begin extends_implements
19  extends TestCase
20  // JUnitDoclet end extends_implements
21  {
22    // JUnitDoclet begin class
23    Prediction prediction = null;
24    // JUnitDoclet end class
25    
26    public PredictionTest(String name) {
27      // JUnitDoclet begin method PredictionTest
28      super(name);
29      // JUnitDoclet end method PredictionTest
30    }
31    
32    public de.fu_berlin.ties.classify.Prediction createInstance() throws Exception {
33      // JUnitDoclet begin method testcase.createInstance
34      return new de.fu_berlin.ties.classify.Prediction("speaker",
35              new Probability(0.83, 0.689));
36      // JUnitDoclet end method testcase.createInstance
37    }
38    
39    protected void setUp() throws Exception {
40      // JUnitDoclet begin method testcase.setUp
41      super.setUp();
42      prediction = createInstance();
43      // JUnitDoclet end method testcase.setUp
44    }
45    
46    protected void tearDown() throws Exception {
47      // JUnitDoclet begin method testcase.tearDown
48      prediction = null;
49      super.tearDown();
50      // JUnitDoclet end method testcase.tearDown
51    }
52    
53    public void testAddProb() throws Exception {
54      // JUnitDoclet begin method addProb
55      // JUnitDoclet end method addProb
56    }
57    
58    public void testEquals() throws Exception {
59      // JUnitDoclet begin method equals
60      // JUnitDoclet end method equals
61    }
62    
63    public void testGetProbability() throws Exception {
64      // JUnitDoclet begin method getProbability
65      // JUnitDoclet end method getProbability
66    }
67    
68    public void testGetType() throws Exception {
69      // JUnitDoclet begin method getType
70      // JUnitDoclet end method getType
71    }
72    
73    public void testHashCode() throws Exception {
74      // JUnitDoclet begin method hashCode
75      // JUnitDoclet end method hashCode
76    }
77    
78    public void testSetGetEvalStatus() throws Exception {
79      // JUnitDoclet begin method setEvalStatus getEvalStatus
80      de.fu_berlin.ties.eval.EvalStatus[] tests = {EvalStatus.UNKNOWN,
81          EvalStatus.MISSING, null};
82      
83      for (int i = 0; i < tests.length; i++) {
84        prediction.setEvalStatus(tests[i]);
85        assertEquals(tests[i], prediction.getEvalStatus());
86      }
87      // JUnitDoclet end method setEvalStatus getEvalStatus
88    }
89    
90    public void testSetGetSource() throws Exception {
91      // JUnitDoclet begin method setSource getSource
92      java.lang.String[] tests = {"", " ", "a", "A", "?", "?", "0123456789", "012345678901234567890", "\n", null};
93      
94      for (int i = 0; i < tests.length; i++) {
95        prediction.setSource(tests[i]);
96        assertEquals(tests[i], prediction.getSource());
97      }
98      // JUnitDoclet end method setSource getSource
99    }
100   
101   public void testStoreFields() throws Exception {
102     // JUnitDoclet begin method storeFields
103     // JUnitDoclet end method storeFields
104   }
105   
106   
107   
108   /***
109   * JUnitDoclet moves marker to this method, if there is not match
110   * for them in the regenerated code and if the marker is not empty.
111   * This way, no test gets lost when regenerating after renaming.
112   * Method testVault is supposed to be empty.
113   */
114   public void testVault() throws Exception {
115     // JUnitDoclet begin method testcase.testVault
116     // JUnitDoclet end method testcase.testVault
117   }
118   
119   public static void main(String[] args) {
120     // JUnitDoclet begin method testcase.main
121     junit.textui.TestRunner.run(PredictionTest.class);
122     // JUnitDoclet end method testcase.main
123   }
124 }