Use WebTestClient in tests - part 3 40/139340/7 1.15.2
authorFiete Ostkamp <Fiete.Ostkamp@telekom.de>
Wed, 6 Nov 2024 14:49:13 +0000 (15:49 +0100)
committerFiete Ostkamp <Fiete.Ostkamp@telekom.de>
Tue, 19 Nov 2024 07:32:06 +0000 (08:32 +0100)
commit6ecf6370d5bc38b6313f869d321dd2294563d4b0
tree35879c3b697ec9fe4a1f85c3eede2e979cfdab9c
parentfd112727637454135c8ec80a8455ed0b6db3e948
Use WebTestClient in tests - part 3

- make ResourcesControllerTest full integration test
- this later on allows declaring all supported api query params explicitly,
  that are implicitly supported currently
- add new ResourcesControllerMockTest that asserts exception handling for internal server errors
- remove body arg from @GET annotated controller methods

Issue-ID: AAI-4039
Signed-off-by: Fiete Ostkamp <Fiete.Ostkamp@telekom.de>
Change-Id: I4f2f31bbea4e5f0f19cb98ebc040472616e9eee0
aai-resources/src/main/java/org/onap/aai/rest/URLFromVertexIdConsumer.java
aai-resources/src/main/java/org/onap/aai/rest/VertexIdConsumer.java
aai-resources/src/test/java/org/onap/aai/rest/ExampleConsumerTest.java
aai-resources/src/test/java/org/onap/aai/rest/URLFromVertexIdConsumerTest.java
aai-resources/src/test/java/org/onap/aai/rest/VertexIdConsumerTest.java
aai-resources/src/test/java/org/onap/aai/rest/resources/ResourcesControllerMockTest.java [new file with mode: 0644]
aai-resources/src/test/java/org/onap/aai/rest/resources/ResourcesControllerTest.java [moved from aai-resources/src/test/java/org/onap/aai/rest/ResourcesControllerTest.java with 78% similarity]
aai-resources/src/test/resources/junit-platform.properties [new file with mode: 0644]