1   package de.fu_berlin.ties.util;
2   
3   import junit.framework.TestCase;
4   // JUnitDoclet begin import
5   import de.fu_berlin.ties.util.TaskRunner;
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 TaskRunnerTest
18  // JUnitDoclet begin extends_implements
19  extends TestCase
20  // JUnitDoclet end extends_implements
21  {
22    // JUnitDoclet begin class
23    TaskRunner taskrunner = null;
24    // JUnitDoclet end class
25    
26    public TaskRunnerTest(String name) {
27      // JUnitDoclet begin method TaskRunnerTest
28      super(name);
29      // JUnitDoclet end method TaskRunnerTest
30    }
31    
32    public de.fu_berlin.ties.util.TaskRunner createInstance() throws Exception {
33      // JUnitDoclet begin method testcase.createInstance
34      return new TaskRunner("testworker");
35      // JUnitDoclet end method testcase.createInstance
36    }
37    
38    protected void setUp() throws Exception {
39      // JUnitDoclet begin method testcase.setUp
40      super.setUp();
41      taskrunner = createInstance();
42      // JUnitDoclet end method testcase.setUp
43    }
44    
45    protected void tearDown() throws Exception {
46      // JUnitDoclet begin method testcase.tearDown
47      taskrunner.close(0);
48      taskrunner = null;
49      super.tearDown();
50      // JUnitDoclet end method testcase.tearDown
51    }
52    
53    public void testDeregisterInterest() throws Exception {
54      // JUnitDoclet begin method deregisterInterest
55      // JUnitDoclet end method deregisterInterest
56    }
57    
58    public void testInvokeDefault() throws Exception {
59      // JUnitDoclet begin method invokeDefault
60      // JUnitDoclet end method invokeDefault
61    }
62    
63    public void testRegisterInterest() throws Exception {
64      // JUnitDoclet begin method registerInterest
65      // JUnitDoclet end method registerInterest
66    }
67    
68    public void testClose() throws Exception {
69      // JUnitDoclet begin method close
70      // JUnitDoclet end method close
71    }
72    
73    public void testGetBaseName() throws Exception {
74      // JUnitDoclet begin method getBaseName
75      // JUnitDoclet end method getBaseName
76    }
77    
78    public void testGetDefaultPriority() throws Exception {
79      // JUnitDoclet begin method getDefaultPriority
80      // JUnitDoclet end method getDefaultPriority
81    }
82    
83    public void testInvoke() throws Exception {
84      // JUnitDoclet begin method invoke
85      // JUnitDoclet end method invoke
86    }
87    
88    public void testIsClosed() throws Exception {
89      // JUnitDoclet begin method isClosed
90      // JUnitDoclet end method isClosed
91    }
92    
93    public void testToString() throws Exception {
94      // JUnitDoclet begin method toString
95      // JUnitDoclet end method toString
96    }
97    
98    
99    
100   /***
101   * JUnitDoclet moves marker to this method, if there is not match
102   * for them in the regenerated code and if the marker is not empty.
103   * This way, no test gets lost when regenerating after renaming.
104   * Method testVault is supposed to be empty.
105   */
106   public void testVault() throws Exception {
107     // JUnitDoclet begin method testcase.testVault
108     // JUnitDoclet end method testcase.testVault
109   }
110   
111   public static void main(String[] args) {
112     // JUnitDoclet begin method testcase.main
113     junit.textui.TestRunner.run(TaskRunnerTest.class);
114     // JUnitDoclet end method testcase.main
115   }
116 }