01: package process;
02:
03: import junit.framework.*;
04: import de.danet.an.util.junit.EJBClientTest;
05:
06: /**
07: * Describe class <code>ProcLifeCycleDirectStateSetting</code> here.
08: *
09: * @author weidauer
10: * @version 1.0
11: */
12: public class ProcLifeCycleDirectStateSetting extends ProcLifeCycle {
13: /**
14: * Constructor of this TestCase
15: * @param name a <code>String</code> value
16: */
17: public ProcLifeCycleDirectStateSetting(String name) {
18: super (name);
19: }
20:
21: /**
22: * Construct this test suit.
23: * @return a <code>Test</code> value
24: */
25: public static Test suite() {
26: TestSuite suite = new TestSuite();
27: suite.addTest(new ProcLifeCycleDirectStateSetting(
28: "importProcessDefinitions"));
29: suite.addTest(new ProcLifeCycleDirectStateSetting(
30: "checkStartAndFinishModeWithProcessP1"));
31: suite.addTest(new ProcLifeCycleDirectStateSetting(
32: "checkExceptionsWithProcessP2"));
33: return new EJBClientTest(plc, suite);
34: }
35:
36: /**
37: * Initialisation.
38: * The <code>setUp</code> method defines the way a state change is
39: * realized. Override this method to change this way.
40: * @exception Exception if an error occurs
41: */
42: protected void setUp() throws Exception {
43: super .setUp();
44: setSetStateDirectly(true);
45: }
46: }
|