1 package org.ninjasoft.magiccodes.plugins;
2
3 import junit.framework.TestCase;
4
5 import org.ninjasoft.magiccodes.plugins.NoOp;
6
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
20 org.ninjasoft.magiccodes.plugins.NoOp noop = null;
21
22
23 public NoOpTest(String name) {
24
25 super(name);
26
27 }
28
29 protected void setUp() throws Exception {
30
31 super.setUp();
32 this.noop = createInstance();
33 }
34
35 public org.ninjasoft.magiccodes.plugins.NoOp createInstance() throws Exception {
36
37 return new org.ninjasoft.magiccodes.plugins.NoOp();
38
39 }
40
41 public void testDoAction() throws Exception {
42
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
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
66
67 }
68
69 public static void main(String[] args) {
70
71 junit.textui.TestRunner.run(NoOpTest.class);
72
73 }
74 }