KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > hero > client > test > performance > PerfTestSuite


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: PerfTestSuite.java,v 1.1 2004/07/30 14:57:58 mvaldes Exp $
26  *
27 --------------------------------------------------------------------------
28  */

29
30 package hero.client.test.performance;
31
32 import javax.security.auth.login.LoginContext JavaDoc;
33 import javax.security.auth.login.LoginException JavaDoc;
34 import hero.client.test.SimpleCallbackHandler;
35
36
37 import junit.framework.TestSuite;
38
39 public class PerfTestSuite extends TestSuite {
40
41     public PerfTestSuite(String JavaDoc testname) {
42     super(testname);
43     }
44
45     public static TestSuite suite() throws LoginException JavaDoc{
46         
47     char[] password={'t','o','t','o','2'};
48     SimpleCallbackHandler handler = new SimpleCallbackHandler("admin2",password);
49     LoginContext JavaDoc lc = new LoginContext JavaDoc("TestClient", handler);
50     lc.login();
51
52     TestSuite st=new TestSuite();
53     //st.addTest(new TestSuite(hero.client.test.performance.UsersTests.class));
54
st.addTest(new TestSuite(hero.client.test.performance.PerformanceTests.class));
55     return st;
56     }
57 }
58
Popular Tags