diff --git a/src/test/java/ee/ria/eidas/EidasClientAuthApiIntegrationTest.java b/src/test/java/ee/ria/eidas/EidasClientAuthApiIntegrationTest.java index c615bb6..21df842 100644 --- a/src/test/java/ee/ria/eidas/EidasClientAuthApiIntegrationTest.java +++ b/src/test/java/ee/ria/eidas/EidasClientAuthApiIntegrationTest.java @@ -58,7 +58,7 @@ public void authApi1_countryParameterMissingShouldReturnError() { assertEquals("Status code should be: 400", 400, response.statusCode()); assertEquals("Bad request error should be returned", BAD_REQUEST, getValueFromJsonResponse(response, STATUS_ERROR)); - assertEquals("Bad request error should be returned", "Required String parameter 'Country' is not present", getValueFromJsonResponse(response, STATUS_ERROR_MESSAGE)); + assertEquals("Bad request error should be returned", "Required request parameter 'Country' for method parameter type String is not present", getValueFromJsonResponse(response, STATUS_ERROR_MESSAGE)); } @Test diff --git a/src/test/java/ee/ria/eidas/EidasClientRespApiIntegrationTest.java b/src/test/java/ee/ria/eidas/EidasClientRespApiIntegrationTest.java index d543fc5..cdad618 100644 --- a/src/test/java/ee/ria/eidas/EidasClientRespApiIntegrationTest.java +++ b/src/test/java/ee/ria/eidas/EidasClientRespApiIntegrationTest.java @@ -3,8 +3,6 @@ import ee.ria.eidas.config.IntegrationTest; import io.qameta.allure.restassured.AllureRestAssured; -import io.restassured.path.json.JsonPath; -import io.restassured.path.xml.XmlPath; import io.restassured.response.Response; import org.apache.commons.lang3.RandomStringUtils; import org.junit.Ignore; @@ -107,7 +105,7 @@ public void respApi3_samlResponseMissingShouldReturnErrorStatus() { assertEquals("Status code should be: 400", 400, response.statusCode()); assertEquals("Bad request error should be returned", BAD_REQUEST, getValueFromJsonResponse(response, STATUS_ERROR)); - assertThat("Correct error message", getValueFromJsonResponse(response, STATUS_ERROR_MESSAGE), startsWith("Required String parameter 'SAMLResponse' is not present")); + assertThat("Correct error message", getValueFromJsonResponse(response, STATUS_ERROR_MESSAGE), startsWith("Required request parameter 'SAMLResponse' for method parameter type String is not present")); } @Test