FINERACT-822 Enforce NonCanonicalType check

This commit is contained in:
percyashu
2020-06-29 22:28:17 +02:00
committed by Michael Vorburger ⛑️
parent e1e230d660
commit fde3d9f83e
5 changed files with 8 additions and 4 deletions
@@ -48,10 +48,12 @@ public class RestAssuredFixture {
this.responseSpec = new ResponseSpecBuilder().expectStatusCode(200).build();
}
@SuppressWarnings("TypeParameterUnusedInFormals")
public <T> T httpGet(String apiPath, String jsonAttributeToGetBack) {
return Utils.performServerGet(this.requestSpec, this.responseSpec, getApiPath(apiPath), jsonAttributeToGetBack);
}
@SuppressWarnings("TypeParameterUnusedInFormals")
public <T> T httpGet(String apiPath) {
return httpGet(apiPath, "");
}
@@ -69,6 +69,7 @@ public class Utils {
}
}
@SuppressWarnings("TypeParameterUnusedInFormals")
public static <T> T performServerGet(final RequestSpecification requestSpec, final ResponseSpecification responseSpec,
final String getURL, final String jsonAttributeToGetBack) {
final String json = given().spec(requestSpec).expect().spec(responseSpec).log().ifError().when().get(getURL).andReturn().asString();