Registry.stop();
}
@Test
public void addClientSubscriptionInfo() {
ClientSubscriptionInfo clientSubscriptionInfo = new ClientSubscriptionInfo();
Node node = new Node();
node.setSecurityUrl("http://localhost:8080/services/securityUrl");
node.setCustodyTransferUrl("http://localhost:8080/services/securityUrl");
node.setDescription("description");
node.setInquiryUrl("http://localhost:8080/services/securityUrl");
node.setPublishUrl("http://localhost:8080/services/securityUrl");
node.setProxyTransport("class");
node.setSubscriptionUrl("http://localhost:8080/services/securityUrl");
node.setName("default");
node.setManagerName("defaultManager");
SaveNode saveNode = new SaveNode();
saveNode.setAuthInfo(authInfoJoe);
saveNode.getNode().add(node);
Clerk clerk = new Clerk();
clerk.setName("clerkName");
clerk.setPublisher("root");
clerk.setNode(node);
SaveClerk saveClerk = new SaveClerk();
saveClerk.setAuthInfo(authInfoJoe);
saveClerk.getClerk().add(clerk);
clientSubscriptionInfo.setFromClerk(clerk);
Node node2 = new Node();
node2.setSecurityUrl("http://localhost:8080/services/securityUrl2");
node2.setCustodyTransferUrl("https://localhost:8080/services/securityUrl2");
node2.setDescription("description2");
node2.setInquiryUrl("http://localhost:8080/services/securityUrl2");
node2.setPublishUrl("http://localhost:8080/services/securityUrl2");
node2.setProxyTransport("class2");
node2.setSubscriptionUrl("http://localhost:8080/services/securityUrl2");
node2.setName("default2");
node2.setManagerName("default2Manager");
saveNode.getNode().add(node2);
Clerk clerk2 = new Clerk();
clerk2.setName("clerkName2");
clerk2.setPublisher("root");
clerk2.setNode(node2);
saveClerk.getClerk().add(clerk2);
clientSubscriptionInfo.setFromClerk(clerk);
clientSubscriptionInfo.setSubscriptionKey("mykey");
SaveClientSubscriptionInfo saveClientSubscriptionInfo = new SaveClientSubscriptionInfo();
saveClientSubscriptionInfo.setAuthInfo(authInfoJoe);
saveClientSubscriptionInfo.getClientSubscriptionInfo().add(clientSubscriptionInfo);
ClientSubscriptionInfo clientSubscriptionInfo2 = new ClientSubscriptionInfo();
clientSubscriptionInfo2.setSubscriptionKey("mykey2");
clientSubscriptionInfo2.setFromClerk(clerk2);
saveClientSubscriptionInfo.getClientSubscriptionInfo().add(clientSubscriptionInfo2);
try {
NodeDetail nodeDetail = publisher.saveNode(saveNode);