Fix failure in PIPEngineGetHistoryTest 33/45133/1
authorJim Hahn <jrh3@att.com>
Fri, 27 Apr 2018 15:23:00 +0000 (11:23 -0400)
committerJim Hahn <jrh3@att.com>
Fri, 27 Apr 2018 15:25:21 +0000 (11:25 -0400)
commit96b1516b2b1baec385811275b02d6ac141becdd9
treee4f2ccc71a12bdb2226cf46cf0ea4f92a15a7a9b
parentad14e8f8d20a9e6c41dc9a7e235198e8d6578564
Fix failure in PIPEngineGetHistoryTest

Turns out that the getAttributesTest() method depends on
testGetCountFromDb() being executed first, but junit does
not guarantee this.  Modified the code so that it is
independent of the order in which the tests are executed.

Change-Id: Ie081061e4e83895f4ac89242cf00d843b6e069d4
Issue-ID: POLICY-765
Signed-off-by: Jim Hahn <jrh3@att.com>
controlloop/common/guard/src/test/java/org/onap/policy/guard/PIPEngineGetHistoryTest.java
controlloop/common/guard/src/test/resources/META-INF/persistence.xml