KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > objectweb > jonas > jtests > clients > distribution > A_bank


1 /*
2  * JOnAS: Java(TM) Open Application Server
3  * Copyright (C) 1999 Bull S.A.
4  * Contact: jonas-team@objectweb.org
5  *
6  * This library is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Lesser General Public
8  * License as published by the Free Software Foundation; either
9  * 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_bank.java,v 1.5 2005/02/03 12:16:09 coqp Exp $
23  * --------------------------------------------------------------------------
24  */

25
26
27 package org.objectweb.jonas.jtests.clients.distribution;
28
29 import javax.rmi.PortableRemoteObject JavaDoc;
30 import org.objectweb.jonas.jtests.beans.bank.Manager;
31 import org.objectweb.jonas.jtests.beans.bank.ManagerHome;
32 import org.objectweb.jonas.jtests.util.JTestCase;
33
34 public abstract class A_bank extends A_bankRead {
35
36     public A_bank(String JavaDoc name) {
37         super(name);
38     }
39     
40     /**
41      * Operation= Move
42      * min range for account nb = 2
43      * max range for account nb = 2
44      * nb of loop in each thread = 10
45      * nb of threads running the same operations = 1
46      * no verification
47      * @throws Exception
48      */

49     public void testSameAccount() throws Exception JavaDoc {
50         ope(OP_MOVETO, 2, 2, 10, 1, 10);
51     }
52     
53     /**
54      * Operation= Move
55      * min range for account nb = 6
56      * max range for account nb = 6
57      * nb of loop in each thread = 1
58      * nb of threads running the same operations = 10
59      * amount = 10
60      * no verification
61      * @throws Exception
62      */

63     public void testMultiSameAccount() throws Exception JavaDoc {
64         ope(OP_MOVETO, 6, 6, 1, 10, 10);
65     }
66
67 }
68
Popular Tags