diff options
author | 2022-01-26 17:45:24 +0530 | |
---|---|---|
committer | 2022-01-27 18:37:25 +0530 | |
commit | 82d8d6b7187c9d8c2bcb40045d0c1a8dd538e024 (patch) | |
tree | 0ec0768e6eeb6ad24fce4cafc78d5d36481fa14d /participant/participant-impl/participant-impl-http/src/test | |
parent | 68d15b4d0241f03790bb0f5949e1f4abdeada428 (diff) |
Fix HTTP Participant Status Change on API Failure
Issue-ID: POLICY-3874
Change-Id: Id5eb4529942e36ead245d28151ffccd4dcb21486
Signed-off-by: Lathish <lathishbabu.ganesan@est.tech>
Diffstat (limited to 'participant/participant-impl/participant-impl-http/src/test')
-rw-r--r-- | participant/participant-impl/participant-impl-http/src/test/java/org/onap/policy/clamp/controlloop/participant/http/handler/ClElementHandlerTest.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/participant/participant-impl/participant-impl-http/src/test/java/org/onap/policy/clamp/controlloop/participant/http/handler/ClElementHandlerTest.java b/participant/participant-impl/participant-impl-http/src/test/java/org/onap/policy/clamp/controlloop/participant/http/handler/ClElementHandlerTest.java index 28b62c2c5..08f008ef3 100644 --- a/participant/participant-impl/participant-impl-http/src/test/java/org/onap/policy/clamp/controlloop/participant/http/handler/ClElementHandlerTest.java +++ b/participant/participant-impl/participant-impl-http/src/test/java/org/onap/policy/clamp/controlloop/participant/http/handler/ClElementHandlerTest.java @@ -1,6 +1,6 @@ /*- * ============LICENSE_START======================================================= - * Copyright (C) 2021 Nordix Foundation. + * Copyright (C) 2021-2022 Nordix Foundation. * ================================================================================ * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -26,6 +26,7 @@ import static org.mockito.Mockito.doNothing; import java.io.IOException; import java.util.Map; +import java.util.concurrent.ExecutionException; import org.junit.jupiter.api.BeforeAll; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.ExtendWith; @@ -93,7 +94,7 @@ class ClElementHandlerTest { } @Test - void test_ControlLoopElementUpdate() { + void test_ControlLoopElementUpdate() throws ExecutionException, InterruptedException { doNothing().when(controlLoopElementHandler).invokeHttpClient(any()); ControlLoopElement element = commonTestData.getControlLoopElement(); |