We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b92020f commit 0d392f3Copy full SHA for 0d392f3
src/test/java/com/pusher/client/channel/impl/ChannelImplTest.java
@@ -163,6 +163,15 @@ public void testEventIsNotPassedOnIfListenerHasUnboundFromEvent() {
163
164
verify(mockListener, never()).onEvent(any(PusherEvent.class));
165
}
166
+ @Test
167
+ public void testEventIsNotPassedOnIfListenerHasUnboundFromGlobalEvent() {
168
+
169
+ channel.bind_global(mockListener);
170
+ channel.unbind_global(mockListener);
171
+ channel.onMessage(EVENT_NAME, "{\"event\":\"event1\",\"data\":\"{\\\"fish\\\":\\\"chips\\\"}\"}");
172
173
+ verify(mockListener, never()).onEvent(any(PusherEvent.class));
174
+ }
175
176
@Test(expected = IllegalArgumentException.class)
177
public void testBindWithNullEventNameThrowsException() {
0 commit comments