Fix the bug of cannot return multiple versions of tosca entity 40/90040/4
authorChenfei Gao <cgao@research.att.com>
Mon, 17 Jun 2019 21:15:37 +0000 (17:15 -0400)
committerJim Hahn <jrh3@att.com>
Tue, 18 Jun 2019 15:09:15 +0000 (15:09 +0000)
Issue-ID: POLICY-1807
Change-Id: I143f3228fd5e23365c95ee13f2e639f9862fc33e
Signed-off-by: Chenfei Gao <cgao@research.att.com>
main/src/test/java/org/onap/policy/api/main/rest/TestApiRestServer.java

index 166bbb4..2f286f0 100644 (file)
@@ -313,7 +313,7 @@ public class TestApiRestServer {
             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());