diff options
author | Chenfei Gao <cgao@research.att.com> | 2019-06-17 17:15:37 -0400 |
---|---|---|
committer | Jim Hahn <jrh3@att.com> | 2019-06-18 15:09:15 +0000 |
commit | 2adcf4b0217a8369158891c409bc3589b7d07937 (patch) | |
tree | 77342b40bca538e8033e8b8d04ac5da68dda9d22 | |
parent | b61663aea6ac9481509b69ecb4764e5e8c1b2dbe (diff) |
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>
-rw-r--r-- | main/src/test/java/org/onap/policy/api/main/rest/TestApiRestServer.java | 2 |
1 files changed, 1 insertions, 1 deletions
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 166bbb4a..2f286f0c 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 @@ 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()); |