1 29 30 package hero.client.test.stress; 31 import hero.interfaces.UserRegistration; 32 import hero.interfaces.UserRegistrationHome; 33 import hero.interfaces.UserRegistrationUtil; 34 import junit.framework.TestCase; 35 import junit.framework.TestSuite; 36 37 public class UsersTests extends TestCase { 38 39 public UsersTests(String testname) { 40 super(testname); 41 } 42 43 public static TestSuite suite() { 44 return new TestSuite(UsersTests.class); 45 } 46 47 public void setUp() throws Exception { 48 } 49 50 public void testCreateUsers() throws Exception { 51 UserRegistrationHome urHome = UserRegistrationUtil.getHome(); 52 UserRegistration userReg=urHome.create(); 53 int i; 54 for (i=0;i<2500;i++) 55 { 56 userReg.userCreate("user"+i,"userpass"+i,"miguel.valdes-faura@ext.bull.net"); 57 65 } 66 67 } 68 69 70 } 71 | Popular Tags |