@Test
 public void test() {
   Map<String, String> parameterMap = new HashMap<String, String>(2, 1);
   parameterMap.put("userName", "*****@*****.**");
   Response response = this.testHandler.execute(ActionNames.DELETE_SPIDER_USER, parameterMap);
   System.out.println(response.getResponseMessage());
 }
Example #2
0
 @Test
 public void test0201Group() {
   testHandler.setSessionId(sid);
   Map<String, String> parameterMap = new HashMap<String, String>();
   Response response = testHandler.execute("/wolf/group", parameterMap);
   System.out.println(response.getResponseMessage());
 }
Example #3
0
 @Test
 public void test0105UserLogout() {
   testHandler.setSessionId(sid);
   Map<String, String> parameterMap = new HashMap<String, String>();
   Response response = testHandler.execute("/user/logout", parameterMap);
   System.out.println(response.getResponseMessage());
 }
Example #4
0
 @Test
 public void test0101UserRegister() {
   Map<String, String> parameterMap = new HashMap<String, String>();
   parameterMap.put("userName", "test01");
   parameterMap.put("password", "111111");
   Response response = testHandler.execute("/user/register", parameterMap);
   System.out.println(response.getResponseMessage());
 }
Example #5
0
 @Test
 public void test0103UserLogin() {
   Map<String, String> parameterMap = new HashMap<String, String>();
   parameterMap.put("userName", "test01");
   parameterMap.put("password", "111111");
   Response response = testHandler.execute("/user/login", parameterMap);
   sid = response.getSessionId();
   System.out.println(response.getResponseMessage());
 }