1 package org.onap.policy.template.demo;
3 import static org.junit.Assert.assertNotNull;
4 import static org.junit.Assert.fail;
8 import org.junit.AfterClass;
9 import org.junit.BeforeClass;
10 import org.junit.Ignore;
11 import org.junit.Test;
12 import org.onap.policy.aai.AAIGETResponse;
13 import org.onap.policy.aai.AAINQF199.AAINQF199Manager;
14 import org.onap.policy.aai.AAINQF199.AAINQF199Request;
15 import org.onap.policy.aai.AAINQF199.AAINQF199Response;
16 import org.onap.policy.drools.http.server.HttpServletServer;
18 public class AaiSimulatorTest {
21 public static void setUpSimulator() {
24 } catch (InterruptedException e) {
30 public static void tearDownSimulator() {
31 HttpServletServer.factory.destroy();
35 public void testGet() {
36 AAIGETResponse response = AAINQF199Manager.getQuery("http://localhost:6666", "testUser", "testPass", UUID.randomUUID(), "5e49ca06-2972-4532-9ed4-6d071588d792");
37 assertNotNull(response);
38 assertNotNull(response.relationshipList);
42 public void testPost() {
43 AAINQF199Response response = AAINQF199Manager.postQuery("http://localhost:6666", "testUser", "testPass", new AAINQF199Request(), UUID.randomUUID());
44 assertNotNull(response);
45 assertNotNull(response.inventoryResponseItems);