to increase code coverage
Issue-ID: APPC-1086
Change-Id: I202822e53c2086b5db41a8028410c07c46821d1d
Signed-off-by: Sandeep J <sandeejh@in.ibm.com>
* ================================================================================
* Copyright (C) 2017 Amdocs
* =============================================================================
* ================================================================================
* Copyright (C) 2017 Amdocs
* =============================================================================
- * Modifications Copyright (C) 2018 IBM
+ * Modifications Copyright (C) 2018-2019 IBM
* ================================================================================
* Modifications Copyright (C) 2019 Ericsson
* ================================================================================
* ================================================================================
* Modifications Copyright (C) 2019 Ericsson
* ================================================================================
expectedEx.expectMessage("An error occurred when getting DG reference");
assertEquals("TestDG", dbService.getDownLoadDGReference(ctx));
}
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);
+ }