From 82d8d6b7187c9d8c2bcb40045d0c1a8dd538e024 Mon Sep 17 00:00:00 2001 From: Lathish Date: Wed, 26 Jan 2022 17:45:24 +0530 Subject: Fix HTTP Participant Status Change on API Failure Issue-ID: POLICY-3874 Change-Id: Id5eb4529942e36ead245d28151ffccd4dcb21486 Signed-off-by: Lathish --- .../controlloop/participant/http/handler/ClElementHandlerTest.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'participant/participant-impl/participant-impl-http/src/test') 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(); -- cgit 1.2.3-korg