Add guard junits 77/26377/1
authorTemoc Rodriguez <cr056n@att.com>
Thu, 14 Dec 2017 23:58:32 +0000 (15:58 -0800)
committerTemoc Rodriguez <cr056n@att.com>
Fri, 15 Dec 2017 17:09:12 +0000 (09:09 -0800)
commit4c8000e91a9dee0738e55e2bda930b94af474157
tree578fdc9102ea43ad4765ba2d2dbb1322b24a37a2
parent5cfd3b7066e6a6305e140fa59b1fccb8e3c5f81b
Add guard junits

Added a few junit files which test most functionality in the guard
submodule. Some minor bugs were found by the junits and fixed those
newly found bugs. Added persistence.xml for use by junits in guard.

Issue-ID: POLICY-490
Change-Id: Ied7e276cfd417e1f396b5a6685a2e9acc9efd109
Signed-off-by: Temoc Rodriguez <cr056n@att.com>
12 files changed:
controlloop/common/guard/pom.xml
controlloop/common/guard/src/main/java/org/onap/policy/guard/PIPEngineGetHistory.java
controlloop/common/guard/src/main/java/org/onap/policy/guard/PolicyGuardXacmlHelper.java
controlloop/common/guard/src/main/java/org/onap/policy/guard/PolicyGuardYamlToXacml.java
controlloop/common/guard/src/main/java/org/onap/policy/guard/Util.java
controlloop/common/guard/src/test/java/org/onap/policy/guard/CallGuardTaskTest.java [new file with mode: 0644]
controlloop/common/guard/src/test/java/org/onap/policy/guard/PIPEngineGetHistoryTest.java [new file with mode: 0644]
controlloop/common/guard/src/test/java/org/onap/policy/guard/PolicyGuardTest.java
controlloop/common/guard/src/test/java/org/onap/policy/guard/PolicyGuardXacmlHelperTest.java [new file with mode: 0644]
controlloop/common/guard/src/test/java/org/onap/policy/guard/PolicyGuardYamlToXacmlTest.java [new file with mode: 0644]
controlloop/common/guard/src/test/resources/META-INF/persistence.xml [new file with mode: 0644]
controlloop/common/simulators/src/main/java/org/onap/policy/simulators/GuardSimulatorJaxRs.java