FINERACT-822 Enforce NonCanonicalType check
This commit is contained in:
committed by
Michael Vorburger ⛑️
parent
e1e230d660
commit
fde3d9f83e
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user