assertNotNull("Cann't get default user", user);
List<Rooms> rooms = Roommanagement.getInstance().getPublicRooms(user.getLevel_id());
assertNotNull("Cann't get public rooms fo default user", rooms);
Rooms room = null;
for (Iterator<Rooms> iter = rooms.iterator(); iter.hasNext();){
room = iter.next();
break;
}
assertNotNull("Cann't get room for default user", room);
Long rmId = RoomModeratorsDaoImpl.getInstance().addRoomModeratorByUserId(user, true, room.getRooms_id());
assertNotNull("Cann't add room moderator", rmId);
Long rooms_id = Roommanagement.getInstance().addExternalRoom(
"ExternalRoom",
room.getRooms_id(), "comment", 10L, true,
null, false, false, 0, false,
null, null, null,
false, //allowUserQuestions
false, //isAudioOnly
false, //isClosed
room.getRedirectURL(),
false, true, false);
assertNotNull("Cann't add external room ", rooms_id);
RoomModerators rm = RoomModeratorsDaoImpl.getInstance().getRoomModeratorById(rmId);
assertNotNull("Cann't get room moderator", rm);