Search in sources :

Example 1 with InvitationDTO

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());
}
Also used : RoomDao(org.apache.openmeetings.db.dao.room.RoomDao) ServiceResult(org.apache.openmeetings.db.dto.basic.ServiceResult) InvitationDTO(org.apache.openmeetings.db.dto.room.InvitationDTO) Room(org.apache.openmeetings.db.entity.room.Room) Test(org.junit.Test)

Aggregations

RoomDao (org.apache.openmeetings.db.dao.room.RoomDao)1 ServiceResult (org.apache.openmeetings.db.dto.basic.ServiceResult)1 InvitationDTO (org.apache.openmeetings.db.dto.room.InvitationDTO)1 Room (org.apache.openmeetings.db.entity.room.Room)1 Test (org.junit.Test)1