Improve tests for exception handling 49/138049/1
authorFiete Ostkamp <Fiete.Ostkamp@telekom.de>
Thu, 23 May 2024 13:22:07 +0000 (15:22 +0200)
committerFiete Ostkamp <Fiete.Ostkamp@telekom.de>
Thu, 23 May 2024 13:22:07 +0000 (15:22 +0200)
commit843834cb8c2c8184607270e4a01c9c3af2d0313e
tree43f01f5d38a8e83129793b382a46327fe86520dc
parente4ff951e645d131a5f4793a75c595da66cc6a23c
Improve tests for exception handling

- add more assertions to ExceptionHandlerTest
- add class definitions for error responses to allow the usage of object mappers for that

Issue-ID: AAI-3691
Change-Id: I0a3f26c7f3a14bf536cc4f023b567aeb4191e963
Signed-off-by: Fiete Ostkamp <Fiete.Ostkamp@telekom.de>
aai-resources/pom.xml
aai-resources/src/main/java/org/onap/aai/entities/AAIErrorResponse.java [new file with mode: 0644]
aai-resources/src/main/java/org/onap/aai/entities/RequestError.java [new file with mode: 0644]
aai-resources/src/main/java/org/onap/aai/entities/ServiceException.java [new file with mode: 0644]
aai-resources/src/test/java/org/onap/aai/rest/ExceptionHandlerTest.java