Search in sources :

Example 1 with StreamsApi

use of com.symphony.api.pod.StreamsApi in project spring-bot by finos.

the class PodApiIT method testRoomSearch.

@ParameterizedTest
@MethodSource("setupConfigurations")
public void testRoomSearch(TestClientStrategy client) throws Exception {
    StreamsApi sApi = client.getPodApi(StreamsApi.class);
    V2RoomSearchCriteria criteria = new V2RoomSearchCriteria();
    criteria.setQuery("Demo");
    criteria.setPrivate(true);
    criteria.setActive(true);
    criteria.setLabels(Collections.emptyList());
    criteria.setSortOrder(SortOrderEnum.BASIC);
    V3RoomSearchResults res = sApi.v3RoomSearchPost(criteria, null, 0, 100);
    System.out.println(res);
}
Also used : V2RoomSearchCriteria(com.symphony.api.model.V2RoomSearchCriteria) StreamsApi(com.symphony.api.pod.StreamsApi) V3RoomSearchResults(com.symphony.api.model.V3RoomSearchResults) ParameterizedTest(org.junit.jupiter.params.ParameterizedTest) MethodSource(org.junit.jupiter.params.provider.MethodSource)

Aggregations

V2RoomSearchCriteria (com.symphony.api.model.V2RoomSearchCriteria)1 V3RoomSearchResults (com.symphony.api.model.V3RoomSearchResults)1 StreamsApi (com.symphony.api.pod.StreamsApi)1 ParameterizedTest (org.junit.jupiter.params.ParameterizedTest)1 MethodSource (org.junit.jupiter.params.provider.MethodSource)1