01: package hero.client.test;
02:
03: import junit.framework.*;
04:
05: import javax.security.auth.login.*;
06:
07: public class TestClone extends TestSuite {
08:
09: public TestClone(String testname) {
10: super (testname);
11: }
12:
13: public static TestSuite suite() throws LoginException {
14: char[] password = { 't', 'o', 't', 'o' };
15: SimpleCallbackHandler handler = new SimpleCallbackHandler(
16: "admin", password);
17: LoginContext lc = new LoginContext("TestClient", handler);
18: lc.login();
19: TestSuite st = new TestSuite();
20: st.addTest(new TestSuite(hero.client.test.Clone.class));
21: return st;
22: }
23: }
|