X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=aai-core%2Fsrc%2Ftest%2Fjava%2Forg%2Fonap%2Faai%2Frest%2FHPACapabilityTest.java;h=279b9c737a5cc821e74dffc1300b4b2b111c02c5;hb=f1a8fb1bc04f5d685f2b31d35db605f6fa054f60;hp=ed7d8e360a8b9e28376eaedd40d1c7187f37f81c;hpb=b1264ad4012f67664d71982a0eaad7e9bcce34f4;p=aai%2Faai-common.git diff --git a/aai-core/src/test/java/org/onap/aai/rest/HPACapabilityTest.java b/aai-core/src/test/java/org/onap/aai/rest/HPACapabilityTest.java index ed7d8e36..279b9c73 100644 --- a/aai-core/src/test/java/org/onap/aai/rest/HPACapabilityTest.java +++ b/aai-core/src/test/java/org/onap/aai/rest/HPACapabilityTest.java @@ -25,20 +25,17 @@ import com.jayway.jsonpath.JsonPath; import org.junit.Before; import org.junit.Test; import org.junit.runner.RunWith; +import org.junit.runners.Parameterized; import org.onap.aai.AAIJunitRunner; import org.onap.aai.HttpTestUtil; import org.onap.aai.PayloadUtil; -import org.onap.aai.introspection.*; +import org.onap.aai.serialization.engines.QueryStyle; import org.skyscreamer.jsonassert.JSONAssert; import javax.ws.rs.core.Response; -import java.util.HashMap; -import java.util.List; -import java.util.Map; -import java.util.UUID; +import java.util.*; import static org.junit.Assert.assertEquals; -import static org.junit.Assert.assertNotNull; @RunWith(AAIJunitRunner.class) public class HPACapabilityTest { @@ -47,9 +44,19 @@ public class HPACapabilityTest { private HttpTestUtil httpTestUtil; private Map templateValuesMap; + @Parameterized.Parameter(value = 0) + public QueryStyle queryStyle; + + @Parameterized.Parameters(name = "QueryStyle.{0}") + public static Collection data() { + return Arrays.asList(new Object[][]{ + {QueryStyle.TRAVERSAL} + }); + } + @Before public void setup() { - httpTestUtil = new HttpTestUtil(); + httpTestUtil = new HttpTestUtil(queryStyle); templateValuesMap = new HashMap<>(); }