diff options
author | 2024-05-15 16:25:00 +0200 | |
---|---|---|
committer | 2024-05-15 16:25:00 +0200 | |
commit | da3a0ffd66b14e450f648bfe3737f3c933280087 (patch) | |
tree | 3ad092236a931d720c6fe16df6739eaa3ad7bdfe /aai-resources/src/test | |
parent | 13a082c7c8529612c7890e52e3e2b35024cf289f (diff) |
Do not use an exception to communicate an ok response in the /echo endpoint
- do not use an AAIException to return a 200 OK response
Issue-ID: AAI-3847
Change-Id: I29b20bb408fa55d5a18ab4e1981d7c2c435410a4
Signed-off-by: Fiete Ostkamp <Fiete.Ostkamp@telekom.de>
Diffstat (limited to 'aai-resources/src/test')
-rw-r--r-- | aai-resources/src/test/java/org/onap/aai/rest/util/EchoResponseTest.java | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/aai-resources/src/test/java/org/onap/aai/rest/util/EchoResponseTest.java b/aai-resources/src/test/java/org/onap/aai/rest/util/EchoResponseTest.java index f754449c..030e870a 100644 --- a/aai-resources/src/test/java/org/onap/aai/rest/util/EchoResponseTest.java +++ b/aai-resources/src/test/java/org/onap/aai/rest/util/EchoResponseTest.java @@ -124,17 +124,6 @@ public class EchoResponseTest extends AAISetup { } @Test - public void testEchoResultWhenValidHeadersButMediaTypeWrong() { - - when(httpHeaders.getAcceptableMediaTypes()).thenThrow(new IllegalStateException()).thenReturn(outputMediaTypes); - - Response response = echoResponse.echoResult(httpHeaders, null, ""); - - assertNotNull(response); - assertEquals(Response.Status.INTERNAL_SERVER_ERROR.getStatusCode(), response.getStatus()); - } - - @Test public void testCheckDbAction_CachedSuccess() { // Prepare when(aaiGraphCheckerMock.isAaiGraphDbAvailable(CheckerType.CACHED)).thenReturn(Boolean.TRUE); |