use of com.symphony.api.model.V4RoomProperties in project spring-bot by finos.
the class RoomWelcomeEventConsumerIT method testRoomCreated.
@Test
public void testRoomCreated() {
RoomWelcomeEventConsumer rwec = new RoomWelcomeEventConsumer(messages, users, bot);
V4Event event = new V4Event().payload(new V4Payload().roomCreated(new V4RoomCreated().roomProperties(new V4RoomProperties().name("Big Room")).stream(new V4Stream().streamId(NEW_ROOM_STREAM_ID))));
rwec.accept(event);
Mockito.verify(messages, Mockito.times(1)).v4StreamSidMessageCreatePost(Mockito.isNull(), Mockito.matches(Pattern.quote(NEW_ROOM_STREAM_ID)), Mockito.isNotNull(), Mockito.isNotNull(), Mockito.isNull(), Mockito.isNull(), Mockito.isNull(), Mockito.isNull());
Mockito.clearInvocations(messages);
}
Aggregations