use of uk.gov.gchq.gaffer.operation.impl.CountGroups in project Gaffer by gchq.
the class OperationServiceIT method shouldReturnChunkedOperationChainGroupCounts.
@Test
public void shouldReturnChunkedOperationChainGroupCounts() throws IOException {
// Given
client.addElements(DEFAULT_ELEMENTS);
// When
final Response response = client.executeOperationChainChunked(new OperationChain.Builder().first(new GetAllElements()).then(new CountGroups()).build());
// Then
final List<GroupCounts> results = readChunkedResults(response, new GenericType<ChunkedInput<GroupCounts>>() {
});
assertThat(results).hasSize(1);
final GroupCounts groupCounts = results.get(0);
verifyGroupCounts(groupCounts);
}
Aggregations