[JAVA-27546] Updated spring-cucumber to spring boot 3 (#15276)

This commit is contained in:
panos-kakos
2023-11-24 18:18:04 +02:00
committed by GitHub
parent a2acd64779
commit 8abd7a07b5
5 changed files with 17 additions and 11 deletions
@@ -3,7 +3,8 @@ package com.baeldung.cucumberoptions;
import io.cucumber.java.en.Then;
import io.cucumber.java.en.When;
import org.springframework.http.HttpStatus;
import org.springframework.http.HttpStatusCode;
import org.springframework.http.ResponseEntity;
import org.springframework.web.client.RestTemplate;
@@ -32,7 +33,7 @@ public class HealthCheckStepDefsIntegrationTest extends SpringIntegrationTest {
@Then("^the client receives (\\d+) status code$")
public void verifyStatusCode(int statusCode) throws Throwable {
final HttpStatus currentStatusCode = statusResponse.getStatusCode();
final HttpStatusCode currentStatusCode = statusResponse.getStatusCode();
assertThat(currentStatusCode.value(), is(statusCode));
}
}