Close DB in junits 70/120370/3
authorJim Hahn <jrh3@att.com>
Fri, 9 Apr 2021 13:49:48 +0000 (09:49 -0400)
committerJim Hahn <jrh3@att.com>
Mon, 12 Apr 2021 12:59:17 +0000 (08:59 -0400)
commit0b7b94b17340406b34817d6088daa97d965d5c2c
treefaaea701389cf01ab17afa3bbbfea950a863aeae
parentf616fc7065ffadf046b1abf0fb479d706fec9464
Close DB in junits

Modified some of the junits to close the DB.
In addition, one of the junits was apparently dependent on a previous
test method adding records to the DB, thus the test methods were
actually order dependent, even though no annotations were used to
enforce the order.  Modified that method to insert the data, itself, so
the test methods are no longer order dependent.

Issue-ID: POLICY-3171
Change-Id: I778c12796340f2a665b4ba00588c823c925c078c
Signed-off-by: Jim Hahn <jrh3@att.com>
models-dao/src/test/java/org/onap/policy/models/dao/EntityTest.java
models-provider/src/test/java/org/onap/policy/models/provider/impl/DatabasePolicyModelsProviderTest.java
models-provider/src/test/java/org/onap/policy/models/provider/impl/PolicyStatisticsPersistenceTest.java
models-provider/src/test/java/org/onap/policy/models/provider/revisionhierarchy/HierarchyFetchTest.java