}catch(Exception e){
e.printStackTrace();
}
LOG.info("开始检查web service服务端和客户端是否正常");
LOG.info("userService.login(\"admin\", \"admin\"): "+userService.login("admin", "admin"));
User user=userService.getUserInfo("admin", "admin");
if(user!=null){
LOG.info("user.getUsername(): "+user.getUsername());
LOG.info("user.getPassword(): "+user.getPassword());
}
LOG.info("userService.login(\"admin\", \"123456\"): "+userService.login("admin", "123456"));
user=userService.getUserInfo("admin", "123456");
if(user!=null){
LOG.info("user.getUsername(): "+user.getUsername());
LOG.info("user.getPassword(): "+user.getPassword());
}
LOG.info("userService.login(\"administrator\", \"123456\"): "+userService.login("administrator", "123456"));
user=userService.getUserInfo("administrator", "123456");
if(user!=null){
LOG.info("user.getUsername(): "+user.getUsername());
LOG.info("user.getPassword(): "+user.getPassword());
}
LOG.info("检查完毕");
}
}.start();
}