upgrade eelf-core dependency: 1.0.0 -> 2.0.0-oss 53/109653/1
authorjhh <jorge.hernandez-herrero@att.com>
Mon, 29 Jun 2020 14:54:06 +0000 (09:54 -0500)
committerjhh <jorge.hernandez-herrero@att.com>
Mon, 29 Jun 2020 14:54:06 +0000 (09:54 -0500)
Issue-ID: POLICY-2387
Signed-off-by: jhh <jorge.hernandez-herrero@att.com>
Change-Id: I837c2e958a388e8b6f2df2aff9f995359e44ad62

common-logging/pom.xml
common-logging/src/main/java/org/onap/policy/common/logging/eelf/MessageCodes.java
common-logging/src/main/java/org/onap/policy/common/logging/eelf/PolicyLogger.java
integrity-audit/pom.xml

index d3e46d2..f455569 100644 (file)
@@ -49,7 +49,7 @@
         <dependency>
             <groupId>com.att.eelf</groupId>
             <artifactId>eelf-core</artifactId>
-            <version>1.0.1-oss</version>
+            <version>2.0.0-oss</version>
             <exclusions>
                 <exclusion>
                     <groupId>org.powermock</groupId>
             <artifactId>powermock-api-mockito2</artifactId>
             <scope>test</scope>
         </dependency>
+        <dependency>
+            <groupId>junit</groupId>
+            <artifactId>junit</artifactId>
+            <scope>test</scope>
+        </dependency>
     </dependencies>
 
     <build>
             <plugin>
                 <groupId>com.att.eelf</groupId>
                 <artifactId>eelf-maven-plugin</artifactId>
-                <version>0.0.1</version>
+                <version>2.0.0-oss</version>
                 <executions>
                     <execution>
                         <phase>install</phase>
index 9116051..629ead8 100644 (file)
 
 package org.onap.policy.common.logging.eelf;
 
-import com.att.eelf.i18n.EELFResolvableErrorEnum;
+import com.att.eelf.i18n.EELFResolvableResourceEnum;
 import com.att.eelf.i18n.EELFResourceManager;
 
 /**
  * MessageCodes contains all the messagge codes for EELF logging messages.
  */
-public enum MessageCodes implements EELFResolvableErrorEnum {
+public enum MessageCodes implements EELFResolvableResourceEnum {
     // Below is a list of Error Messages taken from com.att.research.xacml.api XACMLErrorConstants
     // found under:
     // policy-engine\XACML\src\main\java\com\att\research\xacml\api\XACMLErrorConstants.java
index 870e63a..1d95f1f 100644 (file)
@@ -71,13 +71,13 @@ import org.slf4j.MDC;
  */
 public class PolicyLogger {
 
-    private static EELFLogger errorLogger = EELFManager.getInstance().getErrorLogger();
+    private static EELFLogger errorLogger = EELFManager.getErrorLogger();
 
-    private static EELFLogger metricsLogger = EELFManager.getInstance().getMetricsLogger();
+    private static EELFLogger metricsLogger = EELFManager.getMetricsLogger();
 
-    private static EELFLogger auditLogger = EELFManager.getInstance().getAuditLogger();
+    private static EELFLogger auditLogger = EELFManager.getAuditLogger();
 
-    private static EELFLogger debugLogger = EELFManager.getInstance().getDebugLogger();
+    private static EELFLogger debugLogger = EELFManager.getDebugLogger();
 
     private static final String POLICY_LOGGER = "PolicyLogger";
 
index 86f5db1..0389569 100644 (file)
             <artifactId>junit</artifactId>
             <scope>test</scope>
         </dependency>
+        <dependency>
+            <groupId>org.powermock</groupId>
+            <artifactId>powermock-api-mockito2</artifactId>
+            <scope>test</scope>
+        </dependency>
         <dependency>
             <groupId>org.slf4j</groupId>
             <artifactId>slf4j-ext</artifactId>