mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

Matthew Swift
09.55.2012 f11c4de9fda350b29c5d50ebcf2ae15f74a6e583
Minor changes to debug Jenkins failures

- remove all debug trace.
1 files modified
28 ■■■■■ changed files
opendj3/opendj-ldap-sdk/src/test/java/org/forgerock/opendj/ldap/LDAPListenerTestCase.java 28 ●●●●● patch | view | raw | blame | history
opendj3/opendj-ldap-sdk/src/test/java/org/forgerock/opendj/ldap/LDAPListenerTestCase.java
@@ -213,8 +213,6 @@
        @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;
        }
@@ -225,7 +223,7 @@
     */
    @BeforeClass()
    public void disableLogging() {
        // StaticUtils.DEBUG_LOG.setLevel(Level.SEVERE);
        StaticUtils.DEBUG_LOG.setLevel(Level.SEVERE);
    }
    /**
@@ -233,7 +231,7 @@
     */
    @AfterClass()
    public void enableLogging() {
        // StaticUtils.DEBUG_LOG.setLevel(Level.INFO);
        StaticUtils.DEBUG_LOG.setLevel(Level.INFO);
    }
    /**
@@ -247,27 +245,6 @@
        final MockServerConnection serverConnection = new MockServerConnection();
        final MockServerConnectionFactory serverConnectionFactory =
                new MockServerConnectionFactory(serverConnection);
        // final AtomicBoolean isDummyFilterInvoked = new AtomicBoolean(false);
//        TCPNIOTransport transport = TCPNIOTransportBuilder.newInstance()
//                .setProcessor(
//                        FilterChainBuilder.stateless().add(new TransportFilter()).add(
//                                new BaseFilter() {
//                                    /**
//                                     * {@inheritDoc}
//                                     */
//                                    @Override
//                                    public NextAction handleAccept(FilterChainContext ctx)
//                                            throws IOException {
//                                        // isDummyFilterInvoked.set(true);
//                                        return super.handleAccept(ctx);
//                                    }
//                                }).build()).build();
//        transport.start();
//
//        LDAPListenerOptions options =
//                new LDAPListenerOptions().setTCPNIOTransport(transport);
        final LDAPListener listener =
                new LDAPListener("localhost", TestCaseUtils.findFreePort(),
                        serverConnectionFactory/*, options*/);
@@ -281,7 +258,6 @@
            connection.close();
            assertThat(serverConnection.isClosed.await(10, TimeUnit.SECONDS)).isTrue();
        } finally {
            // StaticUtils.DEBUG_LOG.log(Level.INFO, "isDummyFilterInvoked=" + isDummyFilterInvoked.get());
            listener.close();
        }
    }