KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > hero > client > test > BonitaTestSuite


1 package hero.client.test;
2
3 /*
4 *
5 * BonitaTestSuite.java -
6 * Copyright (C) 2002 Ecoo Team
7 * charoy@loria.fr
8 *
9 *
10 * This program is free software; you can redistribute it and/or
11 * modify it under the terms of the GNU Lesser General Public License
12 * as published by the Free Software Foundation; either version 2
13 * of the License, or (at your option) any later version.
14 *
15 * This program is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU Lesser General Public License for more details.
19 *
20 * You should have received a copy of the GNU Lesser General Public License
21 * along with this program; if not, write to the Free Software
22 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
23 */

24
25 import javax.security.auth.login.LoginContext JavaDoc;
26 import javax.security.auth.login.LoginException JavaDoc;
27
28 import junit.framework.TestSuite;
29
30 public class BonitaTestSuite extends TestSuite {
31
32     public BonitaTestSuite(String JavaDoc testname) {
33     super(testname);
34     }
35
36     public static TestSuite suite() throws LoginException JavaDoc{
37     char[] password={'t','o','t','o'};
38     SimpleCallbackHandler handler = new SimpleCallbackHandler("admin",password);
39     LoginContext JavaDoc lc = new LoginContext JavaDoc("TestClient", handler);
40     lc.login();
41     TestSuite st=new TestSuite();
42     st.addTest(new TestSuite(hero.client.test.UserRegistrationTests.class));
43     st.addTest(new TestSuite(hero.client.test.EngineTests.class));
44     st.addTest(new TestSuite(hero.client.test.ProjectSessionTests.class));
45     st.addTest(new TestSuite(hero.client.test.UserSessionTests.class));
46     st.addTest(new TestSuite(hero.client.test.AdminSessionTests.class));
47     return st;
48     }
49 }
50
Popular Tags