Release locks between junit tests 17/112517/4
authorJim Hahn <jrh3@att.com>
Mon, 14 Sep 2020 13:42:02 +0000 (09:42 -0400)
committerJim Hahn <jrh3@att.com>
Mon, 14 Sep 2020 16:57:15 +0000 (12:57 -0400)
commite8e477ab80c6762fb05aebfe9becc630d2d51e39
treed7374b73e6807b517ae660531c6f7c3dd0a67ccd
parent0a8b8fb5291495471c9568d59164188091465f36
Release locks between junit tests

Tdjam junits were randomly failing.  Traced it down to the fact that the
locks were being released asynchronously and thus were not always
released when the next test cases requested them.
Also simplified logging for tdjam junit tests.
Fixed the property file so it isn't overwritten by the junit tests.

Changes per review comments:
- changed "Pattern" to "pattern" in logback xml

Issue-ID: POLICY-2789
Change-Id: I325ec69cf7affa531d3c575e3a34bc0b0e1edac7
Signed-off-by: Jim Hahn <jrh3@att.com>
controlloop/common/controller-tdjam/src/test/java/org/onap/policy/controlloop/TdjamTest.java
controlloop/common/controller-tdjam/src/test/resources/config/tdjam-controller.properties
controlloop/common/controller-tdjam/src/test/resources/logback-test.xml
controlloop/common/rules-test/pom.xml
controlloop/common/rules-test/src/main/java/org/onap/policy/controlloop/common/rules/test/BaseTest.java