1 29 30 31 package hero.client.test.stress; 32 33 54 55 import javax.security.auth.login.LoginContext ; 56 import javax.security.auth.login.LoginException ; 57 import hero.client.test.SimpleCallbackHandler; 58 59 60 import junit.framework.TestSuite; 61 62 public class StressTestSuite extends TestSuite { 63 64 public StressTestSuite(String testname) { 65 super(testname); 66 } 67 68 public static TestSuite suite() throws LoginException { 69 70 char[] password={'t','o','t','o','2'}; 71 SimpleCallbackHandler handler = new SimpleCallbackHandler("admin2",password); 72 LoginContext lc = new LoginContext ("TestClient", handler); 73 lc.login(); 74 75 TestSuite st=new TestSuite(); 76 st.addTest(new TestSuite(hero.client.test.stress.InstancesTests.class)); 78 return st; 79 } 80 } 81 | Popular Tags |