Package ch.unifr.nio.framework.mockups

Examples of ch.unifr.nio.framework.mockups.TestChannelHandler.waitForBlock()


        steppingDispatcher.registerChannel(blockingChannel, testChannelHandler);

        // trigger selection by writing some bytes from testTarget
        testTarget.write(testString.getBytes());

        testChannelHandler.waitForBlock();

        // test cachedInterestOps
        int cachedInterestOps = testChannelHandler.getCachedInterestOps();
        assertEquals("cachedInterestOps: "
                + HandlerAdapter.interestToString(cachedInterestOps),
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.