From 8e9b3d288bc5b51f691183715d5862489f09d95d Mon Sep 17 00:00:00 2001 From: "Magnusen, Drew (dm741q)" Date: Wed, 9 Aug 2017 14:09:59 -0500 Subject: 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) --- .../src/test/java/org/onap/policy/common/ia/test/AuditPeriodTest.java | 2 +- .../org/onap/policy/common/ia/test/DbAuditCompareEntriesTest.java | 4 ++-- .../src/test/java/org/onap/policy/common/ia/test/DbAuditTest.java | 4 ++-- .../org/onap/policy/common/ia/test/IntegrityAuditDesignationTest.java | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) (limited to 'integrity-audit/src/test') 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); -- cgit 1.2.3-korg