@Test public void shouldCreateIdleTimeoutFilter() { final ExtensionHelper extensionHelper = context.mock(ExtensionHelper.class); PingPongExtension extension = new PingPongExtension(requested, extensionHelper); IoFilter filter = extension.getFilter(); assertTrue(filter instanceof PingPongFilter); }
@Override public IoFilter getFilter() { return new PingPongFilter(); }
PingPongExtension extends WebSocketExtension { @Override public IoFilter getFilter() { return new PingPongFilter(); } }
PingPongExtension extends WebSocketExtension { @Override public IoFilter getFilter() { return new PingPongFilter(); } PingPongExtension(ExtensionHeader extension, ExtensionHelper extensionHelper); }
PingPongExtension extends WebSocketExtension { @Override public IoFilter getFilter() { return new PingPongFilter(); } PingPongExtension(ExtensionHeader extension, ExtensionHelper extensionHelper); @Override ExtensionHeader getExtensionHeader(); @Override IoFilter getFilter(); }
PingPongExtension extends WebSocketExtension { @Override public IoFilter getFilter() { return new PingPongFilter(); } PingPongExtension(ExtensionHeader extension, ExtensionHelper extensionHelper); @Override ExtensionHeader getExtensionHeader(); @Override IoFilter getFilter();  }