Enabled unit tests of configuration framework 26/71226/3
authorvempo <vitaliy.emporopulo@amdocs.com>
Thu, 25 Oct 2018 09:44:35 +0000 (09:44 +0000)
committerAvi Gaffa <avi.gaffa@amdocs.com>
Sun, 28 Oct 2018 06:59:03 +0000 (06:59 +0000)
Added slf4j binding for tests.
Updated patch version of commons-configuration.

Change-Id: Ifef09eb3591f01be4f90f16758448018361dcdb7
Issue-ID: SDC-1867
Signed-off-by: vempo <vitaliy.emporopulo@amdocs.com>
common/onap-common-configuration-management/onap-configuration-management-core/pom.xml
common/onap-common-configuration-management/onap-configuration-management-core/src/test/resources/logback-test.xml [new file with mode: 0644]

index 7c5573c..c615270 100755 (executable)
@@ -42,7 +42,7 @@
         <dependency>
             <groupId>org.apache.commons</groupId>
             <artifactId>commons-configuration2</artifactId>
-            <version>2.1</version>
+            <version>2.3</version>
         </dependency>
         <dependency>
             <groupId>commons-logging</groupId>
             <groupId>org.slf4j</groupId>
             <artifactId>slf4j-api</artifactId>
         </dependency>
+        <dependency>
+            <groupId>ch.qos.logback</groupId>
+            <artifactId>logback-classic</artifactId>
+            <scope>test</scope>
+        </dependency>
     </dependencies>
 
     <build>
                 <artifactId>maven-surefire-plugin</artifactId>
                 <version>${mvn.surefire.version}</version>
                 <configuration>
-                    <!--
-                        For some reason running without JaCoCo causes test failures.
-                        Making tests depend on JaCoCo until the problem is fixed.
-                     -->
-                    <skipTests>${jacoco.skip}</skipTests>
                     <systemPropertyVariables>
                         <config.location>${project.basedir}/src/test/resources</config.location>
                         <node.config.location>${user.home}/TestResources</node.config.location>
diff --git a/common/onap-common-configuration-management/onap-configuration-management-core/src/test/resources/logback-test.xml b/common/onap-common-configuration-management/onap-configuration-management-core/src/test/resources/logback-test.xml
new file mode 100644 (file)
index 0000000..73ffeea
--- /dev/null
@@ -0,0 +1,29 @@
+<!--
+  ~ Copyright © 2016-2018 European Support Limited
+  ~
+  ~ 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.
+  ~ See the License for the specific language governing permissions and
+  ~ limitations under the License.
+  -->
+
+<configuration>
+
+    <appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
+        <encoder>
+            <pattern>%d{yyyy-MM-dd HH:mm:ss} [%thread] %-5level %logger{36} - %msg%n</pattern>
+        </encoder>
+    </appender>
+
+    <root level="OFF">
+        <appender-ref ref="STDOUT" />
+    </root>
+
+</configuration>
\ No newline at end of file