To me, it seems like you are not closing your catch block and your function properly
Like what you have here...
public static Response getRequest(String urlParameters, Map<string, string=""> headers) {
RequestSpecification spec = setCertification();
Response response = null;
try {
LOGGER.info("URL : ()", EnvironmentPath.GET LIMITS TRANSACTION_PATH_URI + urlParameters);
response = RestAssured.given().spec(spec).when().contentType(ContentType. JSON).headers(headers).get(EnvironmentPath.GET_LIMITS TRANSACTION_PATH URI + urlParameters).then().extract().response(); }
catch (Exception e) {
LOGGER.error("GET_REQUEST_NOT_PROCESSED- there was an exception raised while processing the request");
throw new DPMSException("GET_REQUEST_NOT_PROCESSED - there was an exception raised while processing the request
return response;
should be
public static Response getRequest(String urlParameters, Map<string, string=""> headers) {
RequestSpecification spec = setCertification();
Response response = null;
try {
LOGGER.info("URL : ()", EnvironmentPath.GET LIMITS TRANSACTION_PATH_URI + urlParameters);
response = RestAssured.given().spec(spec).when().contentType(ContentType. JSON).headers(headers).get(EnvironmentPath.GET_LIMITS TRANSACTION_PATH URI + urlParameters).then().extract().response(); }
catch (Exception e) {
LOGGER.error("GET_REQUEST_NOT_PROCESSED- there was an exception raised while processing the request");
throw new DPMSException("GET_REQUEST_NOT_PROCESSED - there was an exception raised while processing the request"); }
return response; }
Please let me know if that fixes the problem - I am not a Java developer, so I'm using my C# and (intermediate) Javascript knowledge here