Search in sources :

Example 1 with BlockResponse

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!");
}
Also used : BlockResponse(com.google.showcase.v1beta1.BlockResponse) Test(org.junit.Test)

Aggregations

BlockResponse (com.google.showcase.v1beta1.BlockResponse)1 Test (org.junit.Test)1