1 29 30 package hero.client.test.performance; 31 32 import javax.security.auth.login.LoginContext ; 33 import javax.security.auth.login.LoginException ; 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 testname) { 42 super(testname); 43 } 44 45 public static TestSuite suite() throws LoginException { 46 47 char[] password={'t','o','t','o','2'}; 48 SimpleCallbackHandler handler = new SimpleCallbackHandler("admin2",password); 49 LoginContext lc = new LoginContext ("TestClient", handler); 50 lc.login(); 51 52 TestSuite st=new TestSuite(); 53 st.addTest(new TestSuite(hero.client.test.performance.PerformanceTests.class)); 55 return st; 56 } 57 } 58 | Popular Tags |