diff options
author | Magnusen, Drew (dm741q) <dm741q@att.com> | 2017-08-09 14:09:59 -0500 |
---|---|---|
committer | Magnusen, Drew (dm741q) <dm741q@att.com> | 2017-08-11 10:30:41 -0500 |
commit | 8e9b3d288bc5b51f691183715d5862489f09d95d (patch) | |
tree | 097f6f624b4bae9b19637c989f3d94d51580c017 /integrity-audit/src/test/java/org | |
parent | 96bca95f4610edfdabf1fddb981416235158312d (diff) |
Sonar cleanup for integrity-audit
Modified classes in integrity-audit module to resolve major sonar issues.
Issue-ID: [POLICY-96]
Change-Id: I5ef0abb8d2a3ea1ae93edc00363c4d2bea1747e2
Signed-off-by: Magnusen, Drew (dm741q) <dm741q@att.com>
Diffstat (limited to 'integrity-audit/src/test/java/org')
4 files changed, 6 insertions, 6 deletions
diff --git a/integrity-audit/src/test/java/org/onap/policy/common/ia/test/AuditPeriodTest.java b/integrity-audit/src/test/java/org/onap/policy/common/ia/test/AuditPeriodTest.java index 52f847cf..848f6706 100644 --- a/integrity-audit/src/test/java/org/onap/policy/common/ia/test/AuditPeriodTest.java +++ b/integrity-audit/src/test/java/org/onap/policy/common/ia/test/AuditPeriodTest.java @@ -74,7 +74,7 @@ public class AuditPeriodTest { logger.info("setUp: Entering"); - IntegrityAudit.isUnitTesting = true; + IntegrityAudit.setUnitTesting(true); properties = new Properties(); properties.put(IntegrityAuditProperties.DB_DRIVER, IntegrityAuditProperties.DEFAULT_DB_DRIVER); diff --git a/integrity-audit/src/test/java/org/onap/policy/common/ia/test/DbAuditCompareEntriesTest.java b/integrity-audit/src/test/java/org/onap/policy/common/ia/test/DbAuditCompareEntriesTest.java index 8a811366..c41803a8 100644 --- a/integrity-audit/src/test/java/org/onap/policy/common/ia/test/DbAuditCompareEntriesTest.java +++ b/integrity-audit/src/test/java/org/onap/policy/common/ia/test/DbAuditCompareEntriesTest.java @@ -80,7 +80,7 @@ public class DbAuditCompareEntriesTest { logger.info("setUp: Entering"); - IntegrityAudit.isUnitTesting = true; + IntegrityAudit.setUnitTesting(true); properties = new Properties(); properties.put(IntegrityAuditProperties.DB_DRIVER, IntegrityAuditProperties.DEFAULT_DB_DRIVER); @@ -446,7 +446,7 @@ public class DbAuditCompareEntriesTest { logger.info("Setting up DB"); - IntegrityAudit.isUnitTesting = true; + IntegrityAudit.setUnitTesting(true); properties = new Properties(); properties.put(IntegrityAuditProperties.DB_DRIVER, IntegrityAuditProperties.DEFAULT_DB_DRIVER); diff --git a/integrity-audit/src/test/java/org/onap/policy/common/ia/test/DbAuditTest.java b/integrity-audit/src/test/java/org/onap/policy/common/ia/test/DbAuditTest.java index fd1172a8..e2aa9988 100644 --- a/integrity-audit/src/test/java/org/onap/policy/common/ia/test/DbAuditTest.java +++ b/integrity-audit/src/test/java/org/onap/policy/common/ia/test/DbAuditTest.java @@ -113,8 +113,8 @@ public class DbAuditTest { logger.info("setUp: Entering"); - IntegrityAudit.isUnitTesting = true; - IntegrityAuditEntity.isUnitTesting = true; + IntegrityAudit.setUnitTesting(true); + IntegrityAuditEntity.setUnitTesting(true); properties = new Properties(); properties.put(IntegrityAuditProperties.DB_DRIVER, IntegrityAuditProperties.DEFAULT_DB_DRIVER); diff --git a/integrity-audit/src/test/java/org/onap/policy/common/ia/test/IntegrityAuditDesignationTest.java b/integrity-audit/src/test/java/org/onap/policy/common/ia/test/IntegrityAuditDesignationTest.java index f74b354b..91371b96 100644 --- a/integrity-audit/src/test/java/org/onap/policy/common/ia/test/IntegrityAuditDesignationTest.java +++ b/integrity-audit/src/test/java/org/onap/policy/common/ia/test/IntegrityAuditDesignationTest.java @@ -79,7 +79,7 @@ public class IntegrityAuditDesignationTest { logger.info("setUp: Entering"); - IntegrityAudit.isUnitTesting = true; + IntegrityAudit.setUnitTesting(true); properties = new Properties(); properties.put(IntegrityAuditProperties.DB_DRIVER, IntegrityAuditProperties.DEFAULT_DB_DRIVER); |