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 ProcLifeCycleEngineTriggeredParentProcessTriggeringActivityDirectStateSetting
13: extends
14: ProcLifeCycleEngineTriggeredParentProcessTriggeringActivity {
15: /**
16: * Constructor of this TestCase
17: * @param name a <code>String</code> value
18: */
19: public ProcLifeCycleEngineTriggeredParentProcessTriggeringActivityDirectStateSetting(
20: String name) {
21: super (name);
22: }
23:
24: /**
25: * Construct this test suit.
26: * @return a <code>Test</code> value
27: */
28: public static Test suite() {
29: TestSuite suite = new TestSuite();
30: suite
31: .addTest(new ProcLifeCycleEngineTriggeredParentProcessTriggeringActivityDirectStateSetting(
32: "importProcessDefinitions"));
33: suite
34: .addTest(new ProcLifeCycleEngineTriggeredParentProcessTriggeringActivityDirectStateSetting(
35: "checkP0T2TNothing"));
36: suite
37: .addTest(new ProcLifeCycleEngineTriggeredParentProcessTriggeringActivityDirectStateSetting(
38: "checkP0T4T57"));
39: suite
40: .addTest(new ProcLifeCycleEngineTriggeredParentProcessTriggeringActivityDirectStateSetting(
41: "checkP2T5T57"));
42: suite
43: .addTest(new ProcLifeCycleEngineTriggeredParentProcessTriggeringActivityDirectStateSetting(
44: "checkP0T7T7"));
45: suite
46: .addTest(new ProcLifeCycleEngineTriggeredParentProcessTriggeringActivityDirectStateSetting(
47: "checkExceptionP1T7T7"));
48: return new EJBClientTest(plc, suite);
49: }
50:
51: /**
52: * Initialisation.
53: * The <code>setUp</code> method defines the way a state change is
54: * realized. Override this method to change this way.
55: * @exception Exception if an error occurs
56: */
57: protected void setUp() throws Exception {
58: super .setUp();
59: setSetStateDirectly(true);
60: }
61: }
|