Configuration as argument to BRMS Gateway 77/46577/2
authorliamfallon <liam.fallon@ericsson.com>
Tue, 8 May 2018 10:28:40 +0000 (11:28 +0100)
committerliamfallon <liam.fallon@ericsson.com>
Tue, 8 May 2018 10:53:07 +0000 (11:53 +0100)
commit0dea75c506058a9e999d30ec1916c7530504a8d6
tree1c7253dc4594c7275bd73fc049ca632af12ab17e
parent973929cfd6cd3e5ba3a837fa56d35b210307c9ac
Configuration as argument to BRMS Gateway

Added the ability specify the parameter file for the BRMS Gateway
as a argument to allow different configurations to be used during
unit test. This will allow more thorought unit tests to be written.

Replaced System.exit() calls with exeception throws becasue
System.exit() call bring down the entire JVM during testing, terminating
the test at that point.

Changed the package path on four unit test files to the correct path for
unit tests for the BRMS gateway.

Added a unit test for sanity test of the configuraiton file argument.

Issue-ID: POLICY-773
Change-Id: Ic095a5131ddb846eaf3b11157853fab71908c629
Signed-off-by: liamfallon <liam.fallon@ericsson.com>
BRMSGateway/src/main/java/org/onap/policy/brms/api/BrmsGateway.java
BRMSGateway/src/test/java/org/onap/policy/brms/BrmsJpaTest.java [moved from BRMSGateway/src/test/java/org/onap/brmsgw/test/BrmsJpaTest.java with 98% similarity]
BRMSGateway/src/test/java/org/onap/policy/brms/BrmsPushTest.java [moved from BRMSGateway/src/test/java/org/onap/brmsgw/test/BrmsPushTest.java with 97% similarity]
BRMSGateway/src/test/java/org/onap/policy/brms/ControllerPojoTest.java [moved from BRMSGateway/src/test/java/org/onap/brmsgw/test/ControllerPojoTest.java with 98% similarity]
BRMSGateway/src/test/java/org/onap/policy/brms/NotificationPojoTest.java [moved from BRMSGateway/src/test/java/org/onap/brmsgw/test/NotificationPojoTest.java with 98% similarity]
BRMSGateway/src/test/java/org/onap/policy/brms/api/BrmsGatewayMainTest.java [new file with mode: 0644]
BRMSGateway/src/test/java/org/onap/policy/brms/api/BrmsGatewayTest.java