KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > hero > client > test > stress > StressTestSuite


1 /**
2  *
3  * Bonita
4  * Copyright (C) 1999 Bull S.A.
5  * Bull 68 route de versailles 78434 Louveciennes Cedex France
6  * Further information: bonita@objectweb.org
7  *
8  * This library is free software; you can redistribute it and/or
9  * 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  */

29
30
31 package hero.client.test.stress;
32
33 /*
34 *
35 * PerfTestSuite.java -
36 * Copyright (C) 2003 Ecoo Team
37 * charoy@loria.fr
38 *
39 *
40 * This program is free software; you can redistribute it and/or
41 * modify it under the terms of the GNU Lesser General Public License
42 * as published by the Free Software Foundation; either version 2
43 * of the License, or (at your option) any later version.
44 *
45 * This program is distributed in the hope that it will be useful,
46 * but WITHOUT ANY WARRANTY; without even the implied warranty of
47 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
48 * GNU Lesser General Public License for more details.
49 *
50 * You should have received a copy of the GNU Lesser General Public License
51 * along with this program; if not, write to the Free Software
52 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
53 */

54
55 import javax.security.auth.login.LoginContext JavaDoc;
56 import javax.security.auth.login.LoginException JavaDoc;
57 import hero.client.test.SimpleCallbackHandler;
58
59
60 import junit.framework.TestSuite;
61
62 public class StressTestSuite extends TestSuite {
63
64     public StressTestSuite(String JavaDoc testname) {
65     super(testname);
66     }
67
68     public static TestSuite suite() throws LoginException JavaDoc{
69         
70     char[] password={'t','o','t','o','2'};
71     SimpleCallbackHandler handler = new SimpleCallbackHandler("admin2",password);
72     LoginContext JavaDoc lc = new LoginContext JavaDoc("TestClient", handler);
73     lc.login();
74
75     TestSuite st=new TestSuite();
76     //st.addTest(new TestSuite(hero.client.test.stress.UsersTests.class));
77
st.addTest(new TestSuite(hero.client.test.stress.InstancesTests.class));
78     return st;
79     }
80 }
81
Popular Tags