X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=policy-agent%2Fsrc%2Ftest%2Fjava%2Forg%2Foransc%2Fpolicyagent%2FMockPolicyAgent.java;h=cdf614c2a31f671a925168bf8c70c3dad927603d;hb=e2a037745508a3c1ada650ea3571ca57f0a90851;hp=481a1fe1d6b2824c03b0cca45cda2b6456d55e21;hpb=61fcee9bad6d96005c403fdfd3f273430d4f8641;p=nonrtric.git diff --git a/policy-agent/src/test/java/org/oransc/policyagent/MockPolicyAgent.java b/policy-agent/src/test/java/org/oransc/policyagent/MockPolicyAgent.java index 481a1fe1..cdf614c2 100644 --- a/policy-agent/src/test/java/org/oransc/policyagent/MockPolicyAgent.java +++ b/policy-agent/src/test/java/org/oransc/policyagent/MockPolicyAgent.java @@ -123,6 +123,7 @@ public class MockPolicyAgent { logger.error("Could not load json schema ", e); } } + policyTypes.put(ImmutablePolicyType.builder().name("").schema("{}").build()); } } @@ -131,11 +132,9 @@ public class MockPolicyAgent { private void keepServerAlive() throws InterruptedException { logger.info("Keeping server alive!"); - synchronized (this) { this.wait(); } - } private static String title(String jsonSchema) {