1   package org.ninjasoft.magiccodes.plugins;
2   
3   import junit.framework.TestCase;
4   // JUnitDoclet begin import
5   import org.ninjasoft.magiccodes.plugins.NoOp;
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 NoOpTest extends PluginTestBase
18  {
19    // JUnitDoclet begin class
20    org.ninjasoft.magiccodes.plugins.NoOp noop = null;
21    // JUnitDoclet end class
22    
23    public NoOpTest(String name) {
24      // JUnitDoclet begin method NoOpTest
25      super(name);
26      // JUnitDoclet end method NoOpTest
27    }
28    
29    protected void setUp() throws Exception {
30      // JUnitDoclet begin method testcase.setUp
31      super.setUp();
32      this.noop = createInstance();
33    }
34    
35    public org.ninjasoft.magiccodes.plugins.NoOp createInstance() throws Exception {
36      // JUnitDoclet begin method testcase.createInstance
37      return new org.ninjasoft.magiccodes.plugins.NoOp();
38      // JUnitDoclet end method testcase.createInstance
39    }
40    
41    public void testDoAction() throws Exception {
42      // JUnitDoclet begin method doAction
43      int[] test = super.copyArray(arrayA);
44      test = noop.doAction(test, empty);
45      assertArraysEqual(test, arrayA);
46      
47      test = super.copyArray(arrayZ);
48      test = noop.doAction(test, empty);
49      assertArraysEqual(test, arrayZ);
50      
51      test = super.copyArray(arrayAZ);
52      test = noop.doAction(test, empty);
53      assertArraysEqual(test, arrayAZ);
54      // JUnitDoclet end method doAction
55    }
56    
57    
58    /***
59    * JUnitDoclet moves marker to this method, if there is not match
60    * for them in the regenerated code and if the marker is not empty.
61    * This way, no test gets lost when regenerating after renaming.
62    * Method testVault is supposed to be empty.
63    */
64    public void testVault() throws Exception {
65      // JUnitDoclet begin method testcase.testVault
66      // JUnitDoclet end method testcase.testVault
67    }
68    
69    public static void main(String[] args) {
70      // JUnitDoclet begin method testcase.main
71      junit.textui.TestRunner.run(NoOpTest.class);
72      // JUnitDoclet end method testcase.main
73    }
74  }