diff options
author | 2025-02-04 08:07:50 +0100 | |
---|---|---|
committer | 2025-02-04 11:00:36 +0100 | |
commit | f0aaa98a50edbc8b44a8b14c8c21287e623b6ff0 (patch) | |
tree | a90c93578138797bc3f59fb1f08b9ed5d6d3a77d /src/test/java/org/onap/aai/rest/SchemaJobStatusControllerTest.java | |
parent | 8b002a9cf36de2e65f82d5c9999200246d48af33 (diff) |
Use 1.15.5 aai-common release
Issue-ID: AAI-4119
Change-Id: I392037529a8e377cf319981772255d417addac6f
Signed-off-by: Fiete Ostkamp <Fiete.Ostkamp@telekom.de>
Diffstat (limited to 'src/test/java/org/onap/aai/rest/SchemaJobStatusControllerTest.java')
-rw-r--r-- | src/test/java/org/onap/aai/rest/SchemaJobStatusControllerTest.java | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/src/test/java/org/onap/aai/rest/SchemaJobStatusControllerTest.java b/src/test/java/org/onap/aai/rest/SchemaJobStatusControllerTest.java index 971a174..e115b97 100644 --- a/src/test/java/org/onap/aai/rest/SchemaJobStatusControllerTest.java +++ b/src/test/java/org/onap/aai/rest/SchemaJobStatusControllerTest.java @@ -24,23 +24,20 @@ import static org.mockito.Mockito.when; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; import org.onap.aai.config.WebClientConfiguration; -import org.onap.aai.restclient.PropertyPasswordConfiguration; import org.onap.aai.service.SchemaJobStatusService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.test.context.SpringBootTest; import org.springframework.boot.test.context.SpringBootTest.WebEnvironment; import org.springframework.boot.test.mock.mockito.MockBean; import org.springframework.context.annotation.Import; -import org.springframework.test.context.ContextConfiguration; import org.springframework.test.web.reactive.server.WebTestClient; @Import(WebClientConfiguration.class) @SpringBootTest(webEnvironment = WebEnvironment.RANDOM_PORT) -@ContextConfiguration(initializers = PropertyPasswordConfiguration.class) public class SchemaJobStatusControllerTest { - @MockBean + @MockBean private SchemaJobStatusService schemaJobStatusService; @Autowired @@ -58,7 +55,7 @@ public class SchemaJobStatusControllerTest { @Test void testIsSchemaInitializedTrue() throws Exception { when(schemaJobStatusService.isSchemaInitialized()).thenReturn(true); - + webClient.get() .uri("/isSchemaInitialized") .exchange() @@ -70,7 +67,7 @@ public class SchemaJobStatusControllerTest { @Test void testIsSchemaInitializedFalse() throws Exception { when(schemaJobStatusService.isSchemaInitialized()).thenReturn(false); - + webClient.get() .uri("/isSchemaInitialized") .exchange() @@ -87,4 +84,4 @@ public class SchemaJobStatusControllerTest { .expectStatus() .isNotFound(); } -}
\ No newline at end of file +} |