Commit 51061b89 by Svetoslav Videnov

exeption where removed

parent b08f98f6
......@@ -111,13 +111,8 @@ public class Scenario3 implements NotificationCallback {
@Override
public SmartComServiceImpl create(PeerManager pm) {
SmartComServiceImpl sc = super.create(pm);
try {
sc.registerNotificationCallback(new Scenario3());
sc.getCommunication().addPushAdapter(new RESTInputAdapter(restAdapterPort, ""));
} catch (CommunicationException ex) {
//todo-sv: consider propagating the exception instead
throw new IllegalStateException(ex);
}
sc.registerNotificationCallback(new Scenario3());
sc.getCommunication().addPushAdapter(new RESTInputAdapter(restAdapterPort, ""));
return sc;
}
......
......@@ -123,13 +123,8 @@ public class Scenario4 implements NotificationCallback {
@Override
public SmartComServiceImpl create(PeerManager pm) {
SmartComServiceImpl sc = super.create(pm);
try {
sc.registerNotificationCallback(new Scenario4());
sc.getCommunication().addPushAdapter(new RESTInputAdapter(restAdapterPort, ""));
} catch (CommunicationException ex) {
//todo-sv: consider propagating the exception instead
throw new IllegalStateException(ex);
}
sc.registerNotificationCallback(new Scenario4());
sc.getCommunication().addPushAdapter(new RESTInputAdapter(restAdapterPort, ""));
return sc;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment