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: PerfTestSuite.java,v 1.1 2004/07/30 14:57:58 mvaldes Exp $
26: *
27: --------------------------------------------------------------------------
28: */package hero.client.test.performance;
29:
30: import javax.security.auth.login.LoginContext;
31: import javax.security.auth.login.LoginException;
32: import hero.client.test.SimpleCallbackHandler;
33:
34: import junit.framework.TestSuite;
35:
36: public class PerfTestSuite extends TestSuite {
37:
38: public PerfTestSuite(String testname) {
39: super (testname);
40: }
41:
42: public static TestSuite suite() throws LoginException {
43:
44: char[] password = { 't', 'o', 't', 'o', '2' };
45: SimpleCallbackHandler handler = new SimpleCallbackHandler(
46: "admin2", password);
47: LoginContext lc = new LoginContext("TestClient", handler);
48: lc.login();
49:
50: TestSuite st = new TestSuite();
51: //st.addTest(new TestSuite(hero.client.test.performance.UsersTests.class));
52: st.addTest(new TestSuite(
53: hero.client.test.performance.PerformanceTests.class));
54: return st;
55: }
56: }
|