use of com.google.showcase.v1beta1.BlockResponse in project toolkit by googleapis.
the class ShowcaseTest method block.
@Test
public void block() {
BlockResponse result = client.block(BlockRequest.newBuilder().setResponseDelay(Duration.newBuilder().setSeconds(2L).build()).setSuccess(BlockResponse.newBuilder().setContent("Hello, World!").build()).build());
assertThat(result.getContent()).isEqualTo("Hello, World!");
}
Aggregations