@SuppressWarnings("unchecked") @Test(expected = ExpectationError.class) public void sslEncryptionDisabled() throws Exception { Mockery context = new Mockery() {{ setImposteriser(ClassImposteriser.INSTANCE); }}; final SslSession session = context.mock(SslSession.class); final IoSessionEx parent = context.mock(IoSessionEx.class); final IoFilterChain filterChain = context.mock(IoFilterChain.class); context.checking(new Expectations() { { exactly(2).of(session).getParent(); will(returnValue(parent)); oneOf(parent).getFilterChain(); will(returnValue(filterChain)); oneOf(filterChain).getEntry(with(any(Class.class))); will(returnValue(null)); } }); SslAcceptProcessor processor = new SslAcceptProcessor(); processor.removeInternal(session); context.assertIsSatisfied(); }
@Override protected void removeInternal(SslSession session) { super.removeInternal(session); }
SslAcceptProcessor extends BridgeAcceptProcessor<SslSession> { @Override protected void removeInternal(SslSession session) { super.removeInternal(session); } }
SslAcceptProcessor extends BridgeAcceptProcessor<SslSession> { @Override protected void removeInternal(SslSession session) { super.removeInternal(session); }  }
SslAcceptProcessor extends BridgeAcceptProcessor<SslSession> { @Override protected void removeInternal(SslSession session) { super.removeInternal(session); }   }
SslAcceptProcessor extends BridgeAcceptProcessor<SslSession> { @Override protected void removeInternal(SslSession session) { super.removeInternal(session); }    }