01: /*
02: * JOnAS: Java(TM) Open Application Server
03: * Copyright (C) 1999 Bull S.A.
04: * Contact: jonas-team@objectweb.org
05: *
06: * This library is free software; you can redistribute it and/or
07: * modify it under the terms of the GNU Lesser General Public
08: * License as published by the Free Software Foundation; either
09: * version 2.1 of the License, or any later version.
10: *
11: * This library 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 GNU
14: * Lesser General Public License for more details.
15: *
16: * You should have received a copy of the GNU Lesser General Public
17: * License along with this library; if not, write to the Free Software
18: * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
19: * USA
20: *
21: * --------------------------------------------------------------------------
22: * $Id: A_simple.java 3862 2003-12-09 12:37:39Z durieuxp $
23: * --------------------------------------------------------------------------
24: */
25:
26: package org.objectweb.jonas.stests.manac;
27:
28: public abstract class A_simple extends A_manac {
29:
30: protected static ManagerHome home = null;
31: protected static Manager manager = null;
32:
33: // default values
34: int accounts = 20; // nb of accessed accounts
35: int delay = 3; // seconds
36: int loops = 1; // nb of loops
37: int amount = -10; // withdraw value (initial value is 1000)
38: int threads = 1; // nb of concurrent threads
39: int checklevel = 2; // check accounts after every test
40: int timeout = 30; // transaction timeout
41:
42: public A_simple(String name) {
43: super (name);
44: }
45:
46: public void testBasic() throws Exception {
47: manac(accounts, delay, loops, amount, threads, checklevel,
48: timeout);
49: }
50:
51: public void testBasicLong() throws Exception {
52: loops = 100;
53: manac(accounts, delay, loops, amount, threads, checklevel,
54: timeout);
55: }
56:
57: public void testT2() throws Exception {
58: threads = 2;
59: loops = 10;
60: manac(accounts, delay, loops, amount, threads, checklevel,
61: timeout);
62: }
63:
64: public void testT4() throws Exception {
65: threads = 4;
66: loops = 10;
67: manac(accounts, delay, loops, amount, threads, checklevel,
68: timeout);
69: }
70:
71: }
|