From ea793859ccb0ecd6e516a3182dfa87f9cf835092 Mon Sep 17 00:00:00 2001 From: bozmiha <Mihai.BOZ@ext.ec.europa.eu> Date: Fri, 11 Oct 2024 15:40:47 +0300 Subject: [PATCH] added tests for Edit resource page configuration tab --- .../src/main/java/rest/SMPRestException.java | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/domismp-tests/domismp-tests-ui/src/main/java/rest/SMPRestException.java b/domismp-tests/domismp-tests-ui/src/main/java/rest/SMPRestException.java index b4b70374f..84cb1cf46 100644 --- a/domismp-tests/domismp-tests-ui/src/main/java/rest/SMPRestException.java +++ b/domismp-tests/domismp-tests-ui/src/main/java/rest/SMPRestException.java @@ -18,4 +18,15 @@ public class SMPRestException extends Exception { "CONTENT = " + response.getEntity(String.class))); } + public SMPRestException(String message, int responseStatus, String responseContent) { + super(String.format("%s \n %s \n %s \n", + message, + "STATUS = " + responseStatus, + "CONTENT = " + responseContent)); + log.error(String.format("%s \n %s \n %s \n", + message, + "STATUS = " + responseStatus, + "CONTENT = " + responseContent)); + } + } -- GitLab