use of org.apache.openmeetings.db.dto.basic.ServiceResult in project openmeetings by apache.
the class AbstractWebServiceTest method webCreateUser.
public void webCreateUser(User u) {
ServiceResult r = login();
UserDTO dto = new UserDTO(u);
dto.setPassword(createPass());
UserDTO user = getClient(getUserUrl()).path("/").query("sid", r.getMessage()).type(APPLICATION_FORM_URLENCODED).post(new Form().param("user", dto.toString()).param("confirm", "" + false), UserDTO.class);
Assert.assertNotNull(user.getId());
u.setId(user.getId());
}
use of org.apache.openmeetings.db.dto.basic.ServiceResult in project openmeetings by apache.
the class AbstractWebServiceTest method login.
public static ServiceResult login(String user, String pass) {
ServiceResult sr = loginNoCheck(user, pass);
assertEquals("Login should be successful", Type.SUCCESS.name(), sr.getType());
return sr;
}
Aggregations