summaryrefslogtreecommitdiffstats
path: root/main/src/test/java
diff options
context:
space:
mode:
authorChenfei Gao <cgao@research.att.com>2019-06-17 17:15:37 -0400
committerJim Hahn <jrh3@att.com>2019-06-18 15:09:15 +0000
commit2adcf4b0217a8369158891c409bc3589b7d07937 (patch)
tree77342b40bca538e8033e8b8d04ac5da68dda9d22 /main/src/test/java
parentb61663aea6ac9481509b69ecb4764e5e8c1b2dbe (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>
Diffstat (limited to 'main/src/test/java')
-rw-r--r--main/src/test/java/org/onap/policy/api/main/rest/TestApiRestServer.java2
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());