01: /**
02: *
03: * Bonita
04: * Copyright (C) 1999 Bull S.A.
05: * Bull 68 route de versailles 78434 Louveciennes Cedex France
06: * Further information: bonita@objectweb.org
07: *
08: * This library is free software; you can redistribute it and/or
09: * modify it under the terms of the GNU Lesser General Public
10: * License as published by the Free Software Foundation; either
11: * version 2.1 of the License, or any later version.
12: *
13: * This library is distributed in the hope that it will be useful,
14: * but WITHOUT ANY WARRANTY; without even the implied warranty of
15: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16: * Lesser General Public License for more details.
17: *
18: * You should have received a copy of the GNU Lesser General Public
19: * License along with this library; if not, write to the Free Software
20: * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
21: * USA
22: *
23: *
24: --------------------------------------------------------------------------
25: * $Id: UsersTests.java,v 1.1 2004/07/30 14:57:58 mvaldes Exp $
26: *
27: --------------------------------------------------------------------------
28: */package hero.client.test.stress;
29:
30: import hero.interfaces.UserRegistration;
31: import hero.interfaces.UserRegistrationHome;
32: import hero.interfaces.UserRegistrationUtil;
33: import junit.framework.TestCase;
34: import junit.framework.TestSuite;
35:
36: public class UsersTests extends TestCase {
37:
38: public UsersTests(String testname) {
39: super (testname);
40: }
41:
42: public static TestSuite suite() {
43: return new TestSuite(UsersTests.class);
44: }
45:
46: public void setUp() throws Exception {
47: }
48:
49: public void testCreateUsers() throws Exception {
50: UserRegistrationHome urHome = UserRegistrationUtil.getHome();
51: UserRegistration userReg = urHome.create();
52: int i;
53: for (i = 0; i < 2500; i++) {
54: userReg.userCreate("user" + i, "userpass" + i,
55: "miguel.valdes-faura@ext.bull.net");
56: /*String startMail = "false";
57: String startJabber = "false";
58: String terminateMail = "false";
59: String terminateJabber = "false";
60: userReg.setUserProperty("user"+i,hero.util.EventConstants.START+"Mail",startMail);
61: userReg.setUserProperty("user"+i,hero.util.EventConstants.START+"Jabber",startJabber);
62: userReg.setUserProperty("user"+i,hero.util.EventConstants.TERMINATED+"Mail",terminateMail);
63: userReg.setUserProperty("user"+i,hero.util.EventConstants.TERMINATED+"Jabber",terminateJabber);*/
64: }
65:
66: }
67:
68: }
|