aboutsummaryrefslogtreecommitdiffstats
path: root/appc-inbound
diff options
context:
space:
mode:
Diffstat (limited to 'appc-inbound')
-rw-r--r--appc-inbound/appc-artifact-handler/provider/src/test/java/org/onap/appc/artifact/handler/dbservices/DBServiceTest.java10
1 files changed, 9 insertions, 1 deletions
diff --git a/appc-inbound/appc-artifact-handler/provider/src/test/java/org/onap/appc/artifact/handler/dbservices/DBServiceTest.java b/appc-inbound/appc-artifact-handler/provider/src/test/java/org/onap/appc/artifact/handler/dbservices/DBServiceTest.java
index 0676d59fd..dd62fca03 100644
--- a/appc-inbound/appc-artifact-handler/provider/src/test/java/org/onap/appc/artifact/handler/dbservices/DBServiceTest.java
+++ b/appc-inbound/appc-artifact-handler/provider/src/test/java/org/onap/appc/artifact/handler/dbservices/DBServiceTest.java
@@ -6,7 +6,7 @@
* ================================================================================
* Copyright (C) 2017 Amdocs
* =============================================================================
- * Modifications Copyright (C) 2018 IBM
+ * Modifications Copyright (C) 2018-2019 IBM
* ================================================================================
* Modifications Copyright (C) 2019 Ericsson
* ================================================================================
@@ -357,5 +357,13 @@ public class DBServiceTest {
expectedEx.expectMessage("An error occurred when getting DG reference");
assertEquals("TestDG", dbService.getDownLoadDGReference(ctx));
}
+
+ @Test
+ public void testcreateQueryListForTemplateIds() {
+ MockDBService dbService = MockDBService.initialise(true);
+ String queryPart = dbService.createQueryListForTemplateIds("modelId");
+ String expected = " AND ARTIFACT_NAME like '%_modelId.%'";
+ assertEquals(expected, queryPart);
+ }
}