use of org.apache.openmeetings.db.dto.room.InvitationDTO in project openmeetings by apache.
the class TestRoomService method testHash.
@Test
public void testHash() {
List<Room> rooms = getBean(RoomDao.class).get(0, 100);
assertFalse("Room list should not be empty", rooms.isEmpty());
ServiceResult sr = login();
ServiceResult res = getClient(getRoomUrl()).path("/hash").query("sid", sr.getMessage()).query("invite", new InvitationDTO().setFirstname("Mark").setLastname("Steven").setEmail("abc@gmail.com").setPassword("Sys@123!").setPasswordProtected(true).setSubject("Health Meeting").setRoomId(rooms.get(0).getId()).setMessage("Meeting").setValid(Valid.Period).setValidFrom("2018-03-19 02:25:12").setValidTo("2018-04-20 02:25:12").toString()).post("", ServiceResult.class);
assertEquals("Login should be successful", Type.SUCCESS.name(), res.getType());
}
Aggregations