1 package hero.client.test; 2 3 import junit.framework.*; 4 5 import javax.security.auth.login.*; 6 7 public class TestClone extends TestSuite { 8 9 10 public TestClone(String testname) { 11 super(testname); 12 } 13 14 public static TestSuite suite() throws LoginException{ 15 char[] password={'t','o','t','o'}; 16 SimpleCallbackHandler handler = new SimpleCallbackHandler("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 } 24 | Popular Tags |