aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java/org/onap/dcae/inventory/daos/InventoryDAOManager.java
diff options
context:
space:
mode:
authorMichael Hwang <mhwang@research.att.com>2019-03-14 13:48:02 -0400
committerMichael Hwang <mhwang@research.att.com>2019-03-15 10:38:47 -0400
commit4545ce1221e81f15f73cbadaedd1ccfb3ba42c41 (patch)
tree9eb0535bd26404e36951ac8beb9510bcbb72a831 /src/main/java/org/onap/dcae/inventory/daos/InventoryDAOManager.java
parent6c9475eec009e7816ae10e1df7d7a26d6465a1b6 (diff)
Increase unit test coverage4.0.0-ONAPdublin
Change-Id: Id1067160082d117f2e48ad1476dfb0b3ba65134b Issue-ID: DCAEGEN2-1263 Signed-off-by: Michael Hwang <mhwang@research.att.com>
Diffstat (limited to 'src/main/java/org/onap/dcae/inventory/daos/InventoryDAOManager.java')
-rw-r--r--src/main/java/org/onap/dcae/inventory/daos/InventoryDAOManager.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/org/onap/dcae/inventory/daos/InventoryDAOManager.java b/src/main/java/org/onap/dcae/inventory/daos/InventoryDAOManager.java
index 5bdecfe..77a3e7e 100644
--- a/src/main/java/org/onap/dcae/inventory/daos/InventoryDAOManager.java
+++ b/src/main/java/org/onap/dcae/inventory/daos/InventoryDAOManager.java
@@ -2,7 +2,7 @@
* ============LICENSE_START=======================================================
* dcae-inventory
* ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
+ * Copyright (C) 2017-2019 AT&T Intellectual Property. All rights reserved.
* ================================================================================
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -113,7 +113,7 @@ public final class InventoryDAOManager {
debugLogger.info(String.format("Sql table created: %s", daoClass.getSimpleName()));
}
// dcae_service_types DB table has been enhanced to include 2 new columns which need to be added if they don't already exist
- if ( daoClass.getSimpleName().equals("DCAEServiceTypesDAO") ) {
+ if (daoClass.isInstance(DCAEServiceTypesDAO.class)) {
if (dao.checkIfApplicationColumnExists()) {
debugLogger.info(String.format("ApplicationColumn exists: %s", daoClass.getSimpleName()));
} else {