Code Review
/
aai
/
aai-common.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Add plugin to check coverage
[aai/aai-common.git]
/
aai-core
/
src
/
test
/
java
/
org
/
onap
/
aai
/
rest
/
HPACapabilityTest.java
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
ed7d8e3
..
279b9c7
100644
(file)
--- 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.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.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 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.assertEquals;
-import static org.junit.Assert.assertNotNull;
@RunWith(AAIJunitRunner.class)
public class HPACapabilityTest {
@RunWith(AAIJunitRunner.class)
public class HPACapabilityTest {
@@
-47,9
+44,19
@@
public class HPACapabilityTest {
private HttpTestUtil httpTestUtil;
private Map<String, String> templateValuesMap;
private HttpTestUtil httpTestUtil;
private Map<String, String> templateValuesMap;
+ @Parameterized.Parameter(value = 0)
+ public QueryStyle queryStyle;
+
+ @Parameterized.Parameters(name = "QueryStyle.{0}")
+ public static Collection<Object[]> data() {
+ return Arrays.asList(new Object[][]{
+ {QueryStyle.TRAVERSAL}
+ });
+ }
+
@Before
public void setup() {
@Before
public void setup() {
- httpTestUtil = new HttpTestUtil();
+ httpTestUtil = new HttpTestUtil(
queryStyle
);
templateValuesMap = new HashMap<>();
}
templateValuesMap = new HashMap<>();
}