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: StressTestSuite.java,v 1.1 2004/07/30 14:57:58 mvaldes Exp $
26: *
27: --------------------------------------------------------------------------
28: */package hero.client.test.stress;
29:
30: /*
31: *
32: * PerfTestSuite.java -
33: * Copyright (C) 2003 Ecoo Team
34: * charoy@loria.fr
35: *
36: *
37: * This program is free software; you can redistribute it and/or
38: * modify it under the terms of the GNU Lesser General Public License
39: * as published by the Free Software Foundation; either version 2
40: * of the License, or (at your option) any later version.
41: *
42: * This program is distributed in the hope that it will be useful,
43: * but WITHOUT ANY WARRANTY; without even the implied warranty of
44: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
45: * GNU Lesser General Public License for more details.
46: *
47: * You should have received a copy of the GNU Lesser General Public License
48: * along with this program; if not, write to the Free Software
49: * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
50: */
51:
52: import javax.security.auth.login.LoginContext;
53: import javax.security.auth.login.LoginException;
54: import hero.client.test.SimpleCallbackHandler;
55:
56: import junit.framework.TestSuite;
57:
58: public class StressTestSuite extends TestSuite {
59:
60: public StressTestSuite(String testname) {
61: super (testname);
62: }
63:
64: public static TestSuite suite() throws LoginException {
65:
66: char[] password = { 't', 'o', 't', 'o', '2' };
67: SimpleCallbackHandler handler = new SimpleCallbackHandler(
68: "admin2", password);
69: LoginContext lc = new LoginContext("TestClient", handler);
70: lc.login();
71:
72: TestSuite st = new TestSuite();
73: //st.addTest(new TestSuite(hero.client.test.stress.UsersTests.class));
74: st.addTest(new TestSuite(
75: hero.client.test.stress.InstancesTests.class));
76: return st;
77: }
78: }
|