Fix the bug of cannot return multiple versions of tosca entity
Issue-ID: POLICY-1807
Change-Id: I143f3228fd5e23365c95ee13f2e639f9862fc33e
Signed-off-by: Chenfei Gao <cgao@research.att.com>
diff --git a/main/src/test/java/org/onap/policy/api/main/rest/TestApiRestServer.java b/main/src/test/java/org/onap/policy/api/main/rest/TestApiRestServer.java
index 166bbb4..2f286f0 100644
--- a/main/src/test/java/org/onap/policy/api/main/rest/TestApiRestServer.java
+++ b/main/src/test/java/org/onap/policy/api/main/rest/TestApiRestServer.java
@@ -313,7 +313,7 @@
Response rawResponse = readResource(POLICYTYPES, true);
assertEquals(Response.Status.OK.getStatusCode(), rawResponse.getStatus());
ToscaServiceTemplate response = rawResponse.readEntity(ToscaServiceTemplate.class);
- assertTrue(response.getPolicyTypes().get(0).isEmpty());
+ assertTrue(response.getPolicyTypes().isEmpty());
rawResponse = readResource(POLICYTYPES_TCA, true);
assertEquals(Response.Status.NOT_FOUND.getStatusCode(), rawResponse.getStatus());