DeleteServiceInstanceBindingResponse extends AsyncServiceBrokerResponse { public static DeleteServiceInstanceBindingResponseBuilder builder() { return new DeleteServiceInstanceBindingResponseBuilder(); } DeleteServiceInstanceBindingResponse();  DeleteServiceInstanceBindingResponse(boolean async, String operation); static DeleteServiceInstanceBindingResponseBuilder builder(); @Override boolean equals(Object o); @Override boolean canEqual(Object other); @Override int hashCode(); @Override String toString();  }
@Test void responseWithDefaultsIsBuilt() { DeleteServiceInstanceBindingResponse response = DeleteServiceInstanceBindingResponse.builder() .build(); assertThat(response.isAsync()).isEqualTo(false); assertThat(response.getOperation()).isNull(); }
@Test void responseWithAllValuesIsBuilt() { DeleteServiceInstanceBindingResponse response = DeleteServiceInstanceBindingResponse.builder() .async(true) .operation("in progress") .build(); assertThat(response.isAsync()).isEqualTo(true); assertThat(response.getOperation()).isEqualTo("in progress"); }
@Test void withinOperationCharacterLimit() { DeleteServiceInstanceBindingResponse.builder() .operation(RandomString.make(9_999)) .build(); }
@Test void exceedsOperationCharacterLimit() { assertThrows(IllegalArgumentException.class, () -> DeleteServiceInstanceBindingResponse.builder() .operation(RandomString.make(10_001)) .build()); }
@Test void exactlyOperationCharacterLimit() { DeleteServiceInstanceBindingResponse.builder() .operation(RandomString.make(10_000)) .build(); }