Add ExtractAppender to facilite junit tests 65/30765/8
authorJim Hahn <jrh3@att.com>
Wed, 7 Feb 2018 22:13:32 +0000 (17:13 -0500)
committerJim Hahn <jrh3@att.com>
Thu, 8 Feb 2018 15:32:53 +0000 (10:32 -0500)
commite9fd35a303a5f5f41726c3216c8acd7598a3a494
tree8793c41d46c0e5a1bf0101bae64f238123af931f
parent82bc8f543e578f32201d07a23b42d8539b89a4f1
Add ExtractAppender to facilite junit tests

Added ExtractAppender to provide a way for junit tests to capture
data sent to a logger.
Changed logback.version to 1.2.3 and moved the property to the
top-level pom.
Updated license date in top-level pom.
Refactored ExceptionsText, adding ErrorsTester and
ThrowablesTester classes to reduce sonar issues.

Change-Id: Ief7d08972bf4e7037b59c2afe4b77b252f2ad60a
Issue-ID: POLICY-582
Signed-off-by: Jim Hahn <jrh3@att.com>
13 files changed:
pom.xml
utils-test/pom.xml
utils-test/src/main/java/org/onap/policy/common/utils/test/ConstructionError.java [new file with mode: 0644]
utils-test/src/main/java/org/onap/policy/common/utils/test/ErrorsTester.java [new file with mode: 0644]
utils-test/src/main/java/org/onap/policy/common/utils/test/ExceptionsTester.java
utils-test/src/main/java/org/onap/policy/common/utils/test/ThrowablesTester.java [new file with mode: 0644]
utils-test/src/main/java/org/onap/policy/common/utils/test/log/logback/ExtractAppender.java [new file with mode: 0644]
utils-test/src/test/java/org/onap/policy/common/utils/test/ConstructionErrorTest.java [new file with mode: 0644]
utils-test/src/test/java/org/onap/policy/common/utils/test/ErrorsTesterTest.java [new file with mode: 0644]
utils-test/src/test/java/org/onap/policy/common/utils/test/ExceptionsTesterTest.java
utils-test/src/test/java/org/onap/policy/common/utils/test/ThrowablesTesterTest.java [new file with mode: 0644]
utils-test/src/test/java/org/onap/policy/common/utils/test/log/logback/ExtractAppenderTest.java [new file with mode: 0644]
utils-test/src/test/resources/logback-test.xml [new file with mode: 0644]