Refactor HttpEntryTest 23/135723/7
authorFiete Ostkamp <Fiete.Ostkamp@telekom.de>
Sat, 12 Aug 2023 09:53:30 +0000 (09:53 +0000)
committerFiete Ostkamp <Fiete.Ostkamp@telekom.de>
Wed, 16 Aug 2023 11:22:56 +0000 (11:22 +0000)
commitbf21908f6aeac303c8e2e13cff090290e9f35886
tree37fdc2c409121054b595565bb477d3cf9014f04d
parent1c1f0dc110177a190c67e3a8b924542ce4d75ff8
Refactor HttpEntryTest

- make test cases independently runnable by removing shared state
- let method naming better reflect what is being tested
- assign commonly used objects on the class level when they are not modified in the test case
- parse error response object and assert error messages

Other:
- remove unnecessary saving in map in EdgeSerializer

Issue-ID: AAI-3658
Change-Id: I3b9704b8a6b6cfa6ecf4930dc3b1d1a7ce84764a
Signed-off-by: Fiete Ostkamp <Fiete.Ostkamp@telekom.de>
aai-core/src/main/java/org/onap/aai/serialization/db/EdgeSerializer.java
aai-core/src/test/java/org/onap/aai/rest/db/HttpEntryTest.java
aai-core/src/test/java/org/onap/aai/rest/db/responses/ErrorResponse.java [new file with mode: 0644]
aai-core/src/test/java/org/onap/aai/rest/db/responses/Relationship.java [new file with mode: 0644]
aai-core/src/test/java/org/onap/aai/rest/db/responses/RelationshipData.java [new file with mode: 0644]
aai-core/src/test/java/org/onap/aai/rest/db/responses/RelationshipWrapper.java [new file with mode: 0644]
aai-core/src/test/java/org/onap/aai/rest/db/responses/RequestError.java [new file with mode: 0644]
aai-core/src/test/java/org/onap/aai/rest/db/responses/ServiceException.java [new file with mode: 0644]