Removed unsufull classes and moved out of internal broker structures the firing of interceptor events

This commit is contained in:
andrea
2015-08-08 11:29:58 +02:00
parent f876ae49ad
commit 9daff2b738
10 changed files with 18 additions and 117 deletions
@@ -58,7 +58,7 @@ public class BrokerInterceptorTest {
}
@Override
public void onUnsubscribe(Subscription sub) {
public void onUnsubscribe(String topic) {
n.set(80);
}
});
@@ -109,7 +109,7 @@ public class BrokerInterceptorTest {
@Test
public void testNotifyTopicUnsubscribed() throws Exception {
interceptor.notifyTopicUnsubscribed(new Subscription("cli1", "o2", AbstractMessage.QOSType.MOST_ONE, true));
interceptor.notifyTopicUnsubscribed("o2");
interval();
assertEquals(80, n.get());
}