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