From 9e5c4be2515b5c7a967af8f984ffded1f9a5695d Mon Sep 17 00:00:00 2001 From: Fiete Ostkamp Date: Tue, 5 Dec 2023 13:53:07 +0100 Subject: Improve tests for exception handling - add more assertions to ExceptionHandlerTest - add more assertions to DslConsumerTest - add class definitions for error responses to allow the usage of object mappers for that - reduce raw-type warnings by providing types for HttpEntities and ResponseEntities Issue-ID: AAI-3691 Change-Id: I0010ce6e3e7425109607b6a00b9ee08732829aaa Signed-off-by: Fiete Ostkamp --- .../src/main/java/org/onap/aai/rest/dsl/DslQueryProcessor.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'aai-traversal/src/main') diff --git a/aai-traversal/src/main/java/org/onap/aai/rest/dsl/DslQueryProcessor.java b/aai-traversal/src/main/java/org/onap/aai/rest/dsl/DslQueryProcessor.java index ffffaa6..695e125 100644 --- a/aai-traversal/src/main/java/org/onap/aai/rest/dsl/DslQueryProcessor.java +++ b/aai-traversal/src/main/java/org/onap/aai/rest/dsl/DslQueryProcessor.java @@ -140,7 +140,7 @@ public class DslQueryProcessor { } else if (e.getTargetException() instanceof AAIException) { AAIException ex = (AAIException) e.getTargetException(); throw new AAIException((ex.getCode().isEmpty() ? "AAI_6149" : ex.getCode()), - "DSL Error while processing the query :" + ex.getMessage()); + "DSL Error while processing the query :" + ex.getMessage()); } else { throw new AAIException("AAI_6152", "Exception while processing DSL query"); } -- cgit 1.2.3-korg