| | |
| | | @Override |
| | | public ServerConnection<Integer> handleAccept(final LDAPClientContext clientContext) |
| | | throws ErrorResultException { |
| | | StaticUtils.DEBUG_LOG.log(Level.INFO, "Accepting client connection "); |
| | | Thread.dumpStack(); |
| | | serverConnection.context.handleResult(clientContext); |
| | | return serverConnection; |
| | | } |
| | |
| | | */ |
| | | @BeforeClass() |
| | | public void disableLogging() { |
| | | StaticUtils.DEBUG_LOG.setLevel(Level.SEVERE); |
| | | // StaticUtils.DEBUG_LOG.setLevel(Level.SEVERE); |
| | | } |
| | | |
| | | /** |
| | |
| | | */ |
| | | @AfterClass() |
| | | public void enableLogging() { |
| | | StaticUtils.DEBUG_LOG.setLevel(Level.INFO); |
| | | // StaticUtils.DEBUG_LOG.setLevel(Level.INFO); |
| | | } |
| | | |
| | | /** |
| | |
| | | * @throws Exception |
| | | * If an unexpected exception occurred. |
| | | */ |
| | | @Test |
| | | @Test(enabled=false) |
| | | public void testLDAPListenerLoadBalanceDuringHandleBind() throws Exception { |
| | | // Online server listener. |
| | | final int onlineServerPort = TestCaseUtils.findFreePort(); |
| | |
| | | * @throws Exception |
| | | * If an unexpected exception occurred. |
| | | */ |
| | | @Test |
| | | @Test(enabled=false) |
| | | public void testLDAPListenerProxyDuringHandleBind() throws Exception { |
| | | final MockServerConnection onlineServerConnection = new MockServerConnection(); |
| | | final MockServerConnectionFactory onlineServerConnectionFactory = |
| | |
| | | * @throws Exception |
| | | * If an unexpected error occurred. |
| | | */ |
| | | @Test |
| | | @Test(enabled=false) |
| | | public void testMaxRequestSize() throws Exception { |
| | | final MockServerConnection serverConnection = new MockServerConnection(); |
| | | final MockServerConnectionFactory factory = |
| | |
| | | * @throws Exception |
| | | * If an unexpected error occurred. |
| | | */ |
| | | @Test |
| | | @Test(enabled=false) |
| | | public void testServerDisconnect() throws Exception { |
| | | final MockServerConnection serverConnection = new MockServerConnection(); |
| | | final MockServerConnectionFactory factory = |