FINERACT-822 Enforce MutablePublicArray check

This commit is contained in:
percyashu
2020-06-29 22:28:17 +02:00
committed by Michael Vorburger ⛑️
parent 63c72ee53c
commit 649eb4f843
9 changed files with 21 additions and 15 deletions
@@ -48,12 +48,10 @@ 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,7 +69,6 @@ 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();