Search in sources :

Example 1 with V4RoomProperties

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);
}
Also used : V4RoomCreated(com.symphony.api.model.V4RoomCreated) V4Event(com.symphony.api.model.V4Event) V4Stream(com.symphony.api.model.V4Stream) V4Payload(com.symphony.api.model.V4Payload) V4RoomProperties(com.symphony.api.model.V4RoomProperties) Test(org.junit.jupiter.api.Test) SpringBootTest(org.springframework.boot.test.context.SpringBootTest)

Aggregations

V4Event (com.symphony.api.model.V4Event)1 V4Payload (com.symphony.api.model.V4Payload)1 V4RoomCreated (com.symphony.api.model.V4RoomCreated)1 V4RoomProperties (com.symphony.api.model.V4RoomProperties)1 V4Stream (com.symphony.api.model.V4Stream)1 Test (org.junit.jupiter.api.Test)1 SpringBootTest (org.springframework.boot.test.context.SpringBootTest)1