Skip to content

Commit 0b2c234

Browse files
committed
Fix improperly defined test assertions
1 parent 733d636 commit 0b2c234

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

spring-cloud-open-service-broker-autoconfigure/src/test/java/org/springframework/cloud/servicebroker/autoconfigure/web/reactive/ServiceInstanceBindingControllerIntegrationTests.java

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@
4747
import org.springframework.test.web.reactive.server.WebTestClient;
4848

4949
import static org.assertj.core.api.Assertions.assertThat;
50-
import static org.hamcrest.Matchers.is;
5150
import static org.mockito.ArgumentMatchers.any;
5251
import static org.mockito.BDDMockito.given;
5352
import static org.mockito.BDDMockito.then;
@@ -627,7 +626,8 @@ void lastOperationHasInProgressStatus() {
627626
.expectBody()
628627
.jsonPath("$.state")
629628
.isEqualTo(OperationState.IN_PROGRESS.toString())
630-
.jsonPath("$.description", is("working on it"));
629+
.jsonPath("$.description")
630+
.isEqualTo("working on it");
631631

632632
then(this.serviceInstanceBindingService).should()
633633
.getLastOperation(any(GetLastServiceBindingOperationRequest.class));
@@ -653,7 +653,8 @@ void lastOperationHasSucceededStatus(CapturedOutput output) throws Exception {
653653
.expectBody()
654654
.jsonPath("$.state")
655655
.isEqualTo(OperationState.SUCCEEDED.toString())
656-
.jsonPath("$.description", is("all good"));
656+
.jsonPath("$.description")
657+
.isEqualTo("all good");
657658

658659
then(this.serviceInstanceBindingService).should()
659660
.getLastOperation(any(GetLastServiceBindingOperationRequest.class));
@@ -685,7 +686,8 @@ void lastOperationHasSucceededStatusWithDeletionComplete() {
685686
.expectBody()
686687
.jsonPath("$.state")
687688
.isEqualTo(OperationState.SUCCEEDED.toString())
688-
.jsonPath("$.description", is("all good"));
689+
.jsonPath("$.description")
690+
.isEqualTo("all good");
689691

690692
then(this.serviceInstanceBindingService).should()
691693
.getLastOperation(any(GetLastServiceBindingOperationRequest.class));

0 commit comments

Comments
 (0)