diff options
author | Jim Hahn <jrh3@att.com> | 2021-08-23 15:16:13 -0400 |
---|---|---|
committer | Jim Hahn <jrh3@att.com> | 2021-08-23 15:16:25 -0400 |
commit | c3d0b33c9facf49e37e9ab58412227ff44c66363 (patch) | |
tree | 8c62d5acdeac4ad59c6d8964c613bcface152546 /services/services-onappf/src/test | |
parent | 394828d38f52d462df76a42788d79454f67e7315 (diff) |
Fix junits broken by change in is-alive type
Issue-ID: POLICY-3531
Change-Id: I1460333fdd2ebeb96aaa3b5d3186d2bd1eda2d71
Signed-off-by: Jim Hahn <jrh3@att.com>
Diffstat (limited to 'services/services-onappf/src/test')
-rw-r--r-- | services/services-onappf/src/test/java/org/onap/policy/apex/services/onappf/rest/CommonApexStarterRestServer.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/services/services-onappf/src/test/java/org/onap/policy/apex/services/onappf/rest/CommonApexStarterRestServer.java b/services/services-onappf/src/test/java/org/onap/policy/apex/services/onappf/rest/CommonApexStarterRestServer.java index 65d901d41..7313f9168 100644 --- a/services/services-onappf/src/test/java/org/onap/policy/apex/services/onappf/rest/CommonApexStarterRestServer.java +++ b/services/services-onappf/src/test/java/org/onap/policy/apex/services/onappf/rest/CommonApexStarterRestServer.java @@ -28,6 +28,7 @@ import java.io.File; import java.security.SecureRandom; import java.util.Map; import java.util.Properties; +import java.util.concurrent.atomic.AtomicBoolean; import java.util.function.Function; import javax.net.ssl.SSLContext; import javax.ws.rs.client.Client; @@ -209,7 +210,8 @@ public class CommonApexStarterRestServer { private void markActivator(final boolean wasAlive) { final Object manager = Whitebox.getInternalState( Registry.get(ApexStarterConstants.REG_APEX_STARTER_ACTIVATOR, ApexStarterActivator.class), "manager"); - Whitebox.setInternalState(manager, "running", wasAlive); + AtomicBoolean running = Whitebox.getInternalState(manager, "running"); + running.set(wasAlive); } /** |