diff options
author | Jorge Hernandez <jh1730@att.com> | 2017-05-11 08:20:10 -0500 |
---|---|---|
committer | Jorge Hernandez <jh1730@att.com> | 2017-05-11 08:48:27 -0500 |
commit | f354096969e91aa2b3dcdc52adcc2bde1b3b0b74 (patch) | |
tree | 511e29b1bbafb0d3053b00a324fd3934786c8ccb /policy-persistence/src/test | |
parent | b90795e142b490549db86a40007f3eab813bc67c (diff) |
[POLICY-12] clean policy-persistence mod warnings
Takes care of the following warnings:
--IntegrityAuditIntegrationTest.java
import org.junit.Ignore is never used
import org.openecomp.policy.common.im.AdministrativeStateException
is never used
import org.openecomp.policy.common.im.IntegrityMonitor
is never used
import org.openecomp.policy.common.im.StandbyStatusException
is never used
import org.openecomp.policy.drools.core.DroolsPDPIntegrityMonitor
is never used
import org.apache.commons.logging.Log is never used
import org.apache.commons.logging.LogFactory is never used
value of the field IntegrityAuditIntegrationTest.sleepTime is not used
--IntegrityMonitorProperties.java
import org.apache.commons.logging.Log is never used
import org.apache.commons.logging.LogFactory is never used
--StandbyStateManagementTest.java
import org.openecomp.policy.drools.system.PolicyEngine is never
--RepositoryAudit.java
import java.nio.file.FileVisitor is never used
import java.util.concurrent.Callable is never used
--PMStandbyStateChangeNotifier.java
import org.openecomp.policy.drools.controller.internal.MavenDroolsController
is never used
import org.openecomp.policy.drools.event.comm.TopicEndpoint
is never used
--DroolsSessionEntity.java
The serializable class DroolsSessionEntity does not declare a static final
serialVersionUID field of type long
--DroolsPdpObject.java
Comparable is a raw type. References to generic type Comparable<T> should be parameterized
Comparable is a raw type. References to generic type Comparable<T> should be parameterized
Type safety: The method compareTo(Object) belongs to the raw type Comparable.
References to generic type Comparable<T> should be parameterized
--DroolsPdpsElectionHandler.java
The value of the local variable lowestPriorityPdp is not used
Change-Id: Idd563d74c1d6521f7a3759c441f7fe0597011b67
Signed-off-by: Jorge Hernandez <jh1730@att.com>
Diffstat (limited to 'policy-persistence/src/test')
2 files changed, 2 insertions, 21 deletions
diff --git a/policy-persistence/src/test/java/org/openecomp/policy/drools/controller/test/IntegrityAuditIntegrationTest.java b/policy-persistence/src/test/java/org/openecomp/policy/drools/controller/test/IntegrityAuditIntegrationTest.java index 6b654732..c57e3e97 100644 --- a/policy-persistence/src/test/java/org/openecomp/policy/drools/controller/test/IntegrityAuditIntegrationTest.java +++ b/policy-persistence/src/test/java/org/openecomp/policy/drools/controller/test/IntegrityAuditIntegrationTest.java @@ -36,24 +36,18 @@ import org.junit.After; import org.junit.AfterClass; import org.junit.Before; import org.junit.BeforeClass; -import org.junit.Ignore; import org.junit.Test; - -import org.openecomp.policy.common.logging.eelf.PolicyLogger; import org.openecomp.policy.common.ia.IntegrityAudit; -import org.openecomp.policy.common.im.AdministrativeStateException; -import org.openecomp.policy.common.im.IntegrityMonitor; -import org.openecomp.policy.common.im.StandbyStatusException; import org.openecomp.policy.common.im.StateManagement; -import org.openecomp.policy.drools.core.DroolsPDPIntegrityMonitor; +import org.openecomp.policy.common.logging.eelf.PolicyLogger; import org.openecomp.policy.drools.core.IntegrityMonitorProperties; import org.openecomp.policy.drools.core.PolicyContainer; import org.openecomp.policy.drools.im.PMStandbyStateChangeNotifier; import org.openecomp.policy.drools.persistence.DroolsPdpEntity; import org.openecomp.policy.drools.persistence.DroolsPdpImpl; import org.openecomp.policy.drools.persistence.DroolsPdpsConnector; -import org.openecomp.policy.drools.persistence.JpaDroolsPdpsConnector; import org.openecomp.policy.drools.persistence.DroolsPersistenceProperties; +import org.openecomp.policy.drools.persistence.JpaDroolsPdpsConnector; import org.openecomp.policy.drools.persistence.PersistenceFeature; import org.openecomp.policy.drools.persistence.XacmlPersistenceProperties; import org.openecomp.policy.drools.system.Main; @@ -67,14 +61,6 @@ public class IntegrityAuditIntegrationTest { public static final String INTEGRITY_MONITOR_PROPERTIES_FILE="src/test/server/config/IntegrityMonitor.properties"; - - /* - * Currently, the DroolsPdpsElectionHandler.DesignationWaiter is invoked every ten seconds, starting - * at ten seconds after the minute boundary (e.g. 13:05:10). So, an 80 second sleep should be - * sufficient to ensure that we wait for the DesignationWaiter to do its job, before - * checking the results. - */ - private long sleepTime = 80000; /* * Sleep 5 seconds after each test to allow interrupt (shutdown) recovery. diff --git a/policy-persistence/src/test/java/org/openecomp/policy/drools/controller/test/StandbyStateManagementTest.java b/policy-persistence/src/test/java/org/openecomp/policy/drools/controller/test/StandbyStateManagementTest.java index d1e6336b..b7c3d55e 100644 --- a/policy-persistence/src/test/java/org/openecomp/policy/drools/controller/test/StandbyStateManagementTest.java +++ b/policy-persistence/src/test/java/org/openecomp/policy/drools/controller/test/StandbyStateManagementTest.java @@ -59,7 +59,6 @@ import org.openecomp.policy.drools.persistence.DroolsPersistenceProperties; import org.openecomp.policy.drools.persistence.JpaDroolsPdpsConnector; import org.openecomp.policy.drools.persistence.XacmlPersistenceProperties; import org.openecomp.policy.drools.system.Main; -import org.openecomp.policy.drools.system.PolicyEngine; /* * All JUnits are designed to run in the local development environment @@ -1401,10 +1400,6 @@ public class StandbyStateManagementTest { } logger.info("PolicyManagementRunner.run: Exiting"); } - - public void stopRunner() { - PolicyEngine.manager.shutdown(); - } } |