more functional tests and cleanup 71/571/1
authorSerban Jora <sj2381@att.com>
Thu, 18 Jan 2018 21:02:22 +0000 (16:02 -0500)
committerSerban Jora <sj2381@att.com>
Thu, 18 Jan 2018 21:03:27 +0000 (16:03 -0500)
commitf685e36951ec2095f77d5bc02c6030e0fc287569
treebbe9a6e9f76166b67688bdd5f72066c35d27dfcd
parent67f1f9ce3747cc46d737e3ae0d2a2c84a145c260
more functional tests and cleanup

Add mock based tests for federation task and gateway. Remove old CDS helpers. Minor cleanups.

Change-Id: I85234b4dd110b230aa187cbdbae617645dc5a924
Signed-off-by: Serban Jora <sj2381@att.com>
19 files changed:
gateway/src/main/java/org/acumos/federation/gateway/adapter/PeerGateway.java
gateway/src/main/java/org/acumos/federation/gateway/common/FederationDataClientConfiguration.java [deleted file]
gateway/src/main/java/org/acumos/federation/gateway/common/GatewayConfiguration.java
gateway/src/main/java/org/acumos/federation/gateway/service/impl/AbstractServiceImpl.java
gateway/src/main/java/org/acumos/federation/gateway/service/impl/CatalogServiceImpl.java
gateway/src/main/java/org/acumos/federation/gateway/service/impl/Clients.java
gateway/src/main/java/org/acumos/federation/gateway/service/impl/FederationDataClient.java [deleted file]
gateway/src/main/java/org/acumos/federation/gateway/service/impl/PeerServiceImpl.java
gateway/src/main/java/org/acumos/federation/gateway/service/impl/PeerSubscriptionServiceImpl.java
gateway/src/main/java/org/acumos/federation/gateway/task/PeerCommunicationTask.java
gateway/src/main/java/org/acumos/federation/gateway/task/PeerCommunicationTaskScheduler.java [moved from gateway/src/main/java/org/acumos/federation/gateway/controller/PeerCommunicationTaskScheduler.java with 98% similarity]
gateway/src/test/java/org/acumos/federation/gateway/test/ControllerTest.java [new file with mode: 0644]
gateway/src/test/java/org/acumos/federation/gateway/test/PeerGatewayTest.java
gateway/src/test/java/org/acumos/federation/gateway/test/TaskTest.java
gateway/src/test/resources/mockPeerSolutionRevisionArtifactsResponse.json [new file with mode: 0644]
gateway/src/test/resources/mockPeerSolutionRevisionsResponse.json [new file with mode: 0644]
gateway/src/test/resources/mockPeerSolutionsResponse.json [new file with mode: 0644]
gateway/src/test/resources/task-test-catalog.json [new file with mode: 0644]
gateway/src/test/resources/task-test-peers.json [new file with mode: 0644]