Add JUnit for direct Sonar Nexus REST interface 35/44535/1
authorliamfallon <liam.fallon@ericsson.com>
Tue, 24 Apr 2018 22:47:45 +0000 (23:47 +0100)
committerliamfallon <liam.fallon@ericsson.com>
Tue, 24 Apr 2018 22:54:17 +0000 (23:54 +0100)
commit303742b965387dacfeedda939323424716cf9b7c
tree116bcf136d0c99e57c3242c18a770990776fcfee
parent30b44d3e752d44f8f870594a05464c9e1c5158b6
Add JUnit for direct Sonar Nexus REST interface

JUnit tests and changes to the source code to fix issues that were
identified in JUnit testing.

JUnit testing runs tests towards the Nexus server at
https://nexus.onap.org
If that server does not exist then the unit tests will fail
but as the nexus serveir is required for the build to work then
it should be OK to use that server for unit testing. This removes
the need to write complex (and less effective) Mockito type
unit tests.

Issue-ID: POLICY-700
Change-Id: I4aa33a1022033b42bb1fd1fa36785a8e0216b887
Signed-off-by: liamfallon <liam.fallon@ericsson.com>
BRMSGateway/src/main/java/org/onap/policy/brms/api/nexus/NexusRestSearchParameters.java
BRMSGateway/src/main/java/org/onap/policy/brms/api/nexus/NexusRestWrapper.java
BRMSGateway/src/test/java/org/onap/policy/brms/api/nexus/NexusRestWrapperTest.java
BRMSGateway/src/test/java/org/onap/policy/brms/api/nexus/pojo/NexusArtifactHitTest.java [new file with mode: 0644]
BRMSGateway/src/test/java/org/onap/policy/brms/api/nexus/pojo/NexusArtifactLinkTest.java [new file with mode: 0644]
BRMSGateway/src/test/java/org/onap/policy/brms/api/nexus/pojo/NexusArtifactTest.java [new file with mode: 0644]
BRMSGateway/src/test/java/org/onap/policy/brms/api/nexus/pojo/NexusRepositoryTest.java [new file with mode: 0644]
BRMSGateway/src/test/java/org/onap/policy/brms/api/nexus/pojo/NexusSearchResultTest.java [new file with mode: 0644]