From 8954cade997f94979ea69c2bd463e0f4714dc5c5 Mon Sep 17 00:00:00 2001 From: subhash kumar singh Date: Mon, 15 Jan 2018 09:17:30 +0000 Subject: Add test case for CatalogDatabase Add test case for getHeatTemplateByArtifactUuid(). Change-Id: I1ce9908cc01baeb7b5d6b58ba2b7a5f28262a5d6 Issue-ID: SO-360 Signed-off-by: subhash kumar singh --- .../src/main/java/org/openecomp/mso/db/catalog/CatalogDatabase.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'mso-catalog-db/src/main/java') diff --git a/mso-catalog-db/src/main/java/org/openecomp/mso/db/catalog/CatalogDatabase.java b/mso-catalog-db/src/main/java/org/openecomp/mso/db/catalog/CatalogDatabase.java index b9a69e78c7..926c48302f 100644 --- a/mso-catalog-db/src/main/java/org/openecomp/mso/db/catalog/CatalogDatabase.java +++ b/mso-catalog-db/src/main/java/org/openecomp/mso/db/catalog/CatalogDatabase.java @@ -4880,7 +4880,7 @@ public class CatalogDatabase implements Closeable { } public < E > E executeQuerySingleRow(String hql, HashMap variables, boolean retry) { - long startTime = System.currentTimeMillis (); + long startTime = System.currentTimeMillis(); LOGGER.debug("Catalog database - executeQuery: " + hql + (retry ? ", retry=true" : ", retry=false")); Query query = getSession().createQuery(hql); @@ -4895,7 +4895,7 @@ public class CatalogDatabase implements Closeable { E theObject = null; try { - theObject = (E) query.uniqueResult (); + theObject = (E) query.uniqueResult(); } catch (org.hibernate.NonUniqueResultException nure) { LOGGER.debug("Non Unique Result Exception - the Catalog Database does not match a unique row"); LOGGER.error(MessageEnum.GENERAL_EXCEPTION, " non unique result for " + hql, "", "", MsoLogger.ErrorCode.DataError, "Non unique result for " + hql ); -- cgit 1.2.3-korg