diff options
author | Magnusen, Drew (dm741q) <dm741q@att.com> | 2017-08-31 11:32:51 -0500 |
---|---|---|
committer | Magnusen, Drew (dm741q) <dm741q@att.com> | 2017-09-14 14:04:12 -0500 |
commit | 0e87901898a23bfdfc993edb312488006299d01a (patch) | |
tree | f7e665459d07239d0d997955d5eab5dbefada0db /integrity-monitor/src/test/java/org/onap/policy/common/im/test/StateTransitionTest.java | |
parent | e9b5f957f3c27c0a225d7b8fa16a220c5c98c746 (diff) |
Changed logger to slf4j
Changed all instances of Sys.out or PolicyLogger to
slf4j.
Issue-ID: POLICY-178
Change-Id: Ia91af1deb18a9b5c466f6f8a6c546c17c54e14ad
Signed-off-by: Magnusen, Drew (dm741q) <dm741q@att.com>
Diffstat (limited to 'integrity-monitor/src/test/java/org/onap/policy/common/im/test/StateTransitionTest.java')
-rw-r--r-- | integrity-monitor/src/test/java/org/onap/policy/common/im/test/StateTransitionTest.java | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/integrity-monitor/src/test/java/org/onap/policy/common/im/test/StateTransitionTest.java b/integrity-monitor/src/test/java/org/onap/policy/common/im/test/StateTransitionTest.java index ee8ea10f..6d4dc7c6 100644 --- a/integrity-monitor/src/test/java/org/onap/policy/common/im/test/StateTransitionTest.java +++ b/integrity-monitor/src/test/java/org/onap/policy/common/im/test/StateTransitionTest.java @@ -30,15 +30,15 @@ import org.junit.Test; import org.onap.policy.common.im.StateTransition; import org.onap.policy.common.im.StateElement; -import org.onap.policy.common.logging.flexlogger.FlexLogger; -import org.onap.policy.common.logging.flexlogger.Logger; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; /* * All JUnits are designed to run in the local development environment * where they have write privileges and can execute time-sensitive * tasks. */ public class StateTransitionTest { - private static Logger logger = FlexLogger.getLogger(StateTransitionTest.class); + private static Logger logger = LoggerFactory.getLogger(StateTransitionTest.class); private static final String DEFAULT_DB_DRIVER = "org.h2.Driver"; private static final String DEFAULT_DB_URL = "jdbc:h2:file:./sql/smTest"; @@ -2146,7 +2146,7 @@ public class StateTransitionTest { //emf.close(); //} } catch(Exception ex) { - logger.error("Exception: " + ex.toString()); + logger.error("Exception: {}" + ex.toString()); throw new Exception("Failure getting ending state. " + ex ); } finally { if (emf != null && emf.isOpen()) { @@ -2163,10 +2163,10 @@ public class StateTransitionTest { if (endingStandbyStatus != null) { endingStandbyStatus.replace(".", ","); } - logger.info("EndingAdminState = [" + se.getEndingAdminState() +"]"); - logger.info("EndingOpState = [" + se.getEndingOpState() +"]"); - logger.info("EndingAvailStatus = [" + se.getEndingAvailStatus() +"]"); - logger.info("EndingStandbyStatus= [" + endingStandbyStatus +"]"); - logger.info("Exception = [" + se.getException() +"]"); + logger.info("EndingAdminState = [{}]" + se.getEndingAdminState()); + logger.info("EndingOpState = [{}]" + se.getEndingOpState()); + logger.info("EndingAvailStatus = [{}]" + se.getEndingAvailStatus()); + logger.info("EndingStandbyStatus= [{}]" + endingStandbyStatus); + logger.info("Exception = [{}]" + se.getException()); } }
\ No newline at end of file |