Add coverage to test-transaction 08/70008/2
authorJim Hahn <jrh3@att.com>
Mon, 8 Oct 2018 16:23:06 +0000 (12:23 -0400)
committerJim Hahn <jrh3@att.com>
Mon, 8 Oct 2018 17:59:36 +0000 (13:59 -0400)
commit50e8bf5f73677a87c4ec131a8e0357458369cbfb
tree535edcfadb27354b6ea14024e1d2d3f9744a1407
parent002e1441fc90a257737bc567c297faa4e65aaf3d
Add coverage to test-transaction

Fixed bug in test-transaction, wherein it was sometimes using the controller
instead of the controller name as the key into the map.
Changed test to use latch instead of sleep.
Added a little more register/unregister testing.

Change-Id: I2647b44cf164038d211063bd499c25af70c2d9d7
Issue-ID: POLICY-1148
Signed-off-by: Jim Hahn <jrh3@att.com>
feature-test-transaction/src/main/java/org/onap/policy/drools/testtransaction/TestTransaction.java
feature-test-transaction/src/test/java/org/onap/policy/drools/testtransaction/TestTransactionTest.java
feature-test-transaction/src/test/java/org/onap/policy/drools/testtransaction/TestTransactionTest2.java [new file with mode: 0644]