aboutsummaryrefslogtreecommitdiffstats
path: root/main/src
diff options
context:
space:
mode:
authorJim Hahn <jrh3@att.com>2021-08-23 19:49:06 +0000
committerGerrit Code Review <gerrit@onap.org>2021-08-23 19:49:06 +0000
commit6ad3dbfeb528f052b9c3c0ad712fac719157e9f0 (patch)
treecc8c307919493f75b7c4a62266df7e7611822bc8 /main/src
parent7ecdb40fca9ae15a6ea2dded0d3ad693eef717fe (diff)
parent222249acfc5a8c89ca172ba781fe236466d546b9 (diff)
Merge "Fix junits broken by change in is-alive type"
Diffstat (limited to 'main/src')
-rw-r--r--main/src/test/java/org/onap/policy/pdpx/main/CommonRest.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/main/src/test/java/org/onap/policy/pdpx/main/CommonRest.java b/main/src/test/java/org/onap/policy/pdpx/main/CommonRest.java
index a46ee503..938fe581 100644
--- a/main/src/test/java/org/onap/policy/pdpx/main/CommonRest.java
+++ b/main/src/test/java/org/onap/policy/pdpx/main/CommonRest.java
@@ -29,6 +29,7 @@ import java.nio.charset.StandardCharsets;
import java.nio.file.Files;
import java.nio.file.Path;
import java.security.SecureRandom;
+import java.util.concurrent.atomic.AtomicBoolean;
import javax.net.ssl.SSLContext;
import javax.ws.rs.client.Client;
import javax.ws.rs.client.ClientBuilder;
@@ -215,6 +216,7 @@ public class CommonRest {
*/
private void markActivator(boolean newAlive) {
Object manager = Whitebox.getInternalState(XacmlPdpActivator.getCurrent(), "serviceManager");
- Whitebox.setInternalState(manager, "running", newAlive);
+ AtomicBoolean running = Whitebox.getInternalState(manager, "running");
+ running.set(newAlive);
}
}