summaryrefslogtreecommitdiffstats
path: root/main/src/test
diff options
context:
space:
mode:
authorJim Hahn <jrh3@att.com>2021-08-23 15:02:51 -0400
committerJim Hahn <jrh3@att.com>2021-08-23 15:03:01 -0400
commit861dbc22855e93784eb2145daea7be9f189ad765 (patch)
treeb550b66a96e531877eb8c08b4cc7c6b8afd18425 /main/src/test
parentd6a884f20af0f0124c3b469daa2b00089b74f991 (diff)
Fix junits broken by change in is-alive type
Issue-ID: POLICY-3531 Change-Id: I1e66779f4ac05862649828e79914e902a99400d3 Signed-off-by: Jim Hahn <jrh3@att.com>
Diffstat (limited to 'main/src/test')
-rw-r--r--main/src/test/java/org/onap/policy/pap/main/rest/CommonPapRestServer.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/main/src/test/java/org/onap/policy/pap/main/rest/CommonPapRestServer.java b/main/src/test/java/org/onap/policy/pap/main/rest/CommonPapRestServer.java
index c0a69515..e1d1e14a 100644
--- a/main/src/test/java/org/onap/policy/pap/main/rest/CommonPapRestServer.java
+++ b/main/src/test/java/org/onap/policy/pap/main/rest/CommonPapRestServer.java
@@ -29,6 +29,7 @@ import java.io.FileOutputStream;
import java.nio.charset.StandardCharsets;
import java.security.SecureRandom;
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;
@@ -234,7 +235,8 @@ public class CommonPapRestServer {
private void markActivator(boolean wasAlive) {
Object manager = Whitebox.getInternalState(Registry.get(PapConstants.REG_PAP_ACTIVATOR, PapActivator.class),
"serviceManager");
- Whitebox.setInternalState(manager, "running", wasAlive);
+ AtomicBoolean running = Whitebox.getInternalState(manager, "running");
+ running.set(wasAlive);
}
/**