Small modification to resolve junit failures 97/40997/1
authorMagnusen, Drew (dm741q) <dm741q@att.com>
Wed, 4 Apr 2018 16:52:26 +0000 (11:52 -0500)
committerMagnusen, Drew (dm741q) <dm741q@att.com>
Wed, 4 Apr 2018 16:56:34 +0000 (11:56 -0500)
commit155e6205083493851894623b855cd0ec99bbe7c2
treee8be14679660a44b43e43eb762aae5bbc5a32cb5
parent24640f76e3c5c67ab7e0a36d47308762fc72a112
Small modification to resolve junit failures

Added protected method to Heartbeat class that allowed for the passing
of a CountDown latch. This will resolve the timing-related junit
failures in Jenkins environment.

Issue-ID: POLICY-729
Change-Id: I3d2d8bddfb6d9f82be54a2f13bdcd7e1fc65a286
Signed-off-by: Magnusen, Drew (dm741q) <dm741q@att.com>
feature-distributed-locking/src/main/java/org/onap/policy/distributed/locking/DistributedLockingFeature.java
feature-distributed-locking/src/main/java/org/onap/policy/distributed/locking/Heartbeat.java
feature-distributed-locking/src/test/java/org/onap/policy/distributed/locking/DistributedLockingFeatureExceptionTest.java [moved from feature-distributed-locking/src/test/java/org/onap/policy/distributed/locking/test/DistributedLockingFeatureExceptionTest.java with 96% similarity]
feature-distributed-locking/src/test/java/org/onap/policy/distributed/locking/TargetLockTest.java [moved from feature-distributed-locking/src/test/java/org/onap/policy/distributed/locking/test/TargetLockTest.java with 85% similarity]