summaryrefslogtreecommitdiffstats
path: root/aai-traversal/src/main
diff options
context:
space:
mode:
authorFiete Ostkamp <Fiete.Ostkamp@telekom.de>2023-12-05 13:53:07 +0100
committerFiete Ostkamp <Fiete.Ostkamp@telekom.de>2023-12-05 15:06:18 +0100
commit9e5c4be2515b5c7a967af8f984ffded1f9a5695d (patch)
tree3f1f7c4058c45055701875507dac2bec060c35d0 /aai-traversal/src/main
parentd59c2445f0bd8ce8763147acf02d8143df9ca955 (diff)
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 <Fiete.Ostkamp@telekom.de>
Diffstat (limited to 'aai-traversal/src/main')
-rw-r--r--aai-traversal/src/main/java/org/onap/aai/rest/dsl/DslQueryProcessor.java2
1 files changed, 1 insertions, 1 deletions
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");
}