@Test
public void Test10_FaultyImplementator1() throws Exception {
log.info("Test10_FaultyImplementator1");
UDDIClient c = new UDDIClient("META-INF/uddi-subcallback1.xml");
BindingTemplate start = SubscriptionCallbackListener.start(c, "default");
Assert.assertNotNull(start);
Assert.assertNotNull(SubscriptionCallbackListener.getCallbackURL());
Assert.assertNotNull(start.getAccessPoint());
Assert.assertNotNull(start.getAccessPoint().getValue());
log.log(Level.INFO, "AP url: {0} EP url: {1}", new Object[]{start.getAccessPoint().getValue(), SubscriptionCallbackListener.getCallbackURL()});
Assert.assertEquals(start.getAccessPoint().getValue(), SubscriptionCallbackListener.getCallbackURL());
SubscriptionCallbackListener.registerCallback(new ISubscriptionCallback() {
@Override
public void HandleCallback(SubscriptionResultsList body) {
throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
}
@Override
public void NotifyEndpointStopped() {
log.info("bogus callback received");
}
});
SubscriptionCallbackListener.getInstance().notifySubscriptionListener(new NotifySubscriptionListener());
SubscriptionCallbackListener.stop(c, "default", null);
c.stop();
}