01: /*
02: * This file is part of the WfMOpen project.
03: * Copyright (C) 2001-2003 Danet GmbH (www.danet.de), GS-AN.
04: * All rights reserved.
05: *
06: * This program is free software; you can redistribute it and/or modify
07: * it under the terms of the GNU General Public License as published by
08: * the Free Software Foundation; either version 2 of the License, or
09: * (at your option) any later version.
10: *
11: * This program is distributed in the hope that it will be useful,
12: * but WITHOUT ANY WARRANTY; without even the implied warranty of
13: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14: * GNU General Public License for more details.
15: *
16: * You should have received a copy of the GNU General Public License
17: * along with this program; if not, write to the Free Software
18: * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19: *
20: * $Id: CreateTest.java,v 1.2 2006/09/29 12:32:13 drmlipp Exp $
21: *
22: * $Log: CreateTest.java,v $
23: * Revision 1.2 2006/09/29 12:32:13 drmlipp
24: * Consistently using WfMOpen as projct name now.
25: *
26: * Revision 1.1.1.1 2004/08/18 15:18:46 drmlipp
27: * Update to 1.2
28: *
29: * Revision 1.1 2004/05/07 12:56:04 lipp
30: * Create test for timings.
31: *
32: */
33: package load;
34:
35: import javax.security.auth.login.LoginException;
36: import de.danet.an.util.junit.EJBClientTest;
37:
38: import common.UTLoginContext;
39: import junit.framework.Test;
40: import junit.framework.TestCase;
41: import junit.framework.TestSuite;
42:
43: /**
44: * This class provides ...
45: *
46: * @author <a href="mailto:mnl@mnl.de">Michael N. Lipp</a>
47: * @version $Revision: 1.2 $
48: */
49:
50: public class CreateTest extends TestCase {
51:
52: private static UTLoginContext plc = null;
53: static {
54: try {
55: plc = new UTLoginContext();
56: plc.login();
57: } catch (LoginException e) {
58: throw new IllegalStateException(e.getMessage());
59: }
60: }
61:
62: /**
63: * Creates an instance of <code>CreateTest</code>
64: * with all attributes initialized to default values.
65: */
66: public CreateTest(String name) {
67: super (name);
68: }
69:
70: /**
71: * Make this test suite.
72: */
73: public static Test suite() {
74: TestSuite rootSuite = new TestSuite();
75: rootSuite.addTest(new ProcHandling("importProcessDefinitions"));
76: for (int i = 0; i < 10; i++) {
77: rootSuite.addTest(new ProcHandling("createProcess11Acts"));
78: }
79: return new EJBClientTest(plc, rootSuite);
80: }
81:
82: }
|