summaryrefslogtreecommitdiffstats
path: root/models-dao/src/test/java
diff options
context:
space:
mode:
authorJim Hahn <jrh3@att.com>2019-06-18 12:47:14 -0400
committerJim Hahn <jrh3@att.com>2019-06-18 12:49:11 -0400
commit1cdad9b78056103a4ca1d1b71d996489787ed702 (patch)
tree5c57c02f002da053c923333ef7712a08e5534be5 /models-dao/src/test/java
parent26e7f16c6e3f224d38e09441be30c1d4fa795c2a (diff)
Change getCanonicalName to getName in models
Per javadocs, getName() should generally be used instead of Class.getCanonicalName(). This change only applies to classes; it does not apply to File objects. Note: this impacts the output from PfValidationMessage, as it will now list the names of embedded classes with a "$" separator instead of a ".". Change-Id: I2cd64bc0281dd324bf80eac57335a7299a516447 Issue-ID: POLICY-1646 Signed-off-by: Jim Hahn <jrh3@att.com>
Diffstat (limited to 'models-dao/src/test/java')
-rw-r--r--models-dao/src/test/java/org/onap/policy/models/dao/EntityTest.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/models-dao/src/test/java/org/onap/policy/models/dao/EntityTest.java b/models-dao/src/test/java/org/onap/policy/models/dao/EntityTest.java
index e7a505d1f..70505aa2d 100644
--- a/models-dao/src/test/java/org/onap/policy/models/dao/EntityTest.java
+++ b/models-dao/src/test/java/org/onap/policy/models/dao/EntityTest.java
@@ -93,7 +93,7 @@ public class EntityTest {
public void testEntityTestAllOpsJpa() throws PfModelException {
final DaoParameters daoParameters = new DaoParameters();
- daoParameters.setPluginClass(DefaultPfDao.class.getCanonicalName());
+ daoParameters.setPluginClass(DefaultPfDao.class.getName());
daoParameters.setPersistenceUnit("DaoTest");
Properties jdbcProperties = new Properties();
@@ -119,7 +119,7 @@ public class EntityTest {
@Test
public void testEntityTestBadVals() throws PfModelException {
final DaoParameters daoParameters = new DaoParameters();
- daoParameters.setPluginClass(DefaultPfDao.class.getCanonicalName());
+ daoParameters.setPluginClass(DefaultPfDao.class.getName());
daoParameters.setPersistenceUnit("DaoTest");
pfDao = new PfDaoFactory().createPfDao(daoParameters);