From 56a15039437ba5bf5d0fb422551bfb12e1f59eb1 Mon Sep 17 00:00:00 2001 From: Jim Hahn Date: Fri, 19 Jun 2020 14:32:10 -0400 Subject: Address checkstyle version issues in drools-pdp Also added serializationId to several classes to address eclipse warnings. Issue-ID: POLICY-2188 Change-Id: I3df5e8abaad8da9261c0d5cd19a93ed68dceb870 Signed-off-by: Jim Hahn --- .../org/onap/policy/drools/statemanagement/test/Audit.java | 5 ++--- .../drools/statemanagement/test/StateManagementTest.java | 12 +++++------- 2 files changed, 7 insertions(+), 10 deletions(-) (limited to 'feature-state-management/src/test/java') diff --git a/feature-state-management/src/test/java/org/onap/policy/drools/statemanagement/test/Audit.java b/feature-state-management/src/test/java/org/onap/policy/drools/statemanagement/test/Audit.java index 943293c9..37d9d7b8 100644 --- a/feature-state-management/src/test/java/org/onap/policy/drools/statemanagement/test/Audit.java +++ b/feature-state-management/src/test/java/org/onap/policy/drools/statemanagement/test/Audit.java @@ -7,9 +7,9 @@ * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. @@ -21,7 +21,6 @@ package org.onap.policy.drools.statemanagement.test; import java.io.Serializable; - import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.Id; diff --git a/feature-state-management/src/test/java/org/onap/policy/drools/statemanagement/test/StateManagementTest.java b/feature-state-management/src/test/java/org/onap/policy/drools/statemanagement/test/StateManagementTest.java index f6c42b5f..347e8c90 100644 --- a/feature-state-management/src/test/java/org/onap/policy/drools/statemanagement/test/StateManagementTest.java +++ b/feature-state-management/src/test/java/org/onap/policy/drools/statemanagement/test/StateManagementTest.java @@ -26,13 +26,11 @@ import java.io.File; import java.io.FileInputStream; import java.io.IOException; import java.util.Properties; - import javax.persistence.EntityManager; import javax.persistence.EntityManagerFactory; import javax.persistence.EntityTransaction; import javax.persistence.Persistence; import javax.ws.rs.core.Response; - import org.junit.After; import org.junit.AfterClass; import org.junit.Before; @@ -74,7 +72,7 @@ public class StateManagementTest { String userDir = System.getProperty("user.dir"); logger.debug("setUpClass: userDir=" + userDir); System.setProperty("com.sun.management.jmxremote.port", "9980"); - System.setProperty("com.sun.management.jmxremote.authenticate","false"); + System.setProperty("com.sun.management.jmxremote.authenticate", "false"); initializeDb(); @@ -189,7 +187,7 @@ public class StateManagementTest { assertTrue("Standby status not coldstandby after promote()", standby.equals(StateManagement.COLD_STANDBY)); - /**************Repository Audit Test. **************/ + /* *************Repository Audit Test. ************* */ logger.debug("\n\ntestStateManagementOperation: Repository Audit\n\n"); try { StateManagementProperties.initProperties(fsmProperties); @@ -207,7 +205,7 @@ public class StateManagementTest { logger.debug("testSubsytemTest RepositoryAudit InterruptedException", e); } - /*****************Db Audit Test. ***************/ + /* ****************Db Audit Test. ************** */ logger.debug("\n\ntestStateManagementOperation: DB Audit\n\n"); try { @@ -220,7 +218,7 @@ public class StateManagementTest { logger.debug("testSubsytemTest DbAudit exception", e); } - /*************IntegrityMonitorRestManager Test. *************/ + /* ************IntegrityMonitorRestManager Test. ************ */ logger.debug("\n\ntestStateManagementOperation: IntegrityMonitorRestManager\n\n"); IntegrityMonitorRestManager integrityMonitorRestManager = new IntegrityMonitorRestManager(); @@ -242,7 +240,7 @@ public class StateManagementTest { logger.debug("initializeDb: Entering"); Properties cleanProperties = new Properties(); - cleanProperties.put(StateManagementProperties.DB_DRIVER,"org.h2.Driver"); + cleanProperties.put(StateManagementProperties.DB_DRIVER, "org.h2.Driver"); cleanProperties.put(StateManagementProperties.DB_URL, "jdbc:h2:mem:statemanagement"); cleanProperties.put(StateManagementProperties.DB_USER, "sa"); cleanProperties.put(StateManagementProperties.DB_PWD, ""); -- cgit 1.2.3-korg