Package org.jboss.netty.channel

Examples of org.jboss.netty.channel.ChannelHandlerContext.sendUpstream()


    {
        NettyThriftDecoder decoder = new NettyThriftDecoder();
        ChannelHandlerContext ctx = EasyMock.createMock(ChannelHandlerContext.class);
        Channel channel = EasyMock.createMock(Channel.class);
        EasyMock.expect(ctx.getChannel()).andReturn(channel);
        ctx.sendUpstream(EasyMock.anyObject(ChannelEvent.class));
        EasyMock.replay(ctx, channel);
        try {
            Object rand = new Object();
            Object obj = decoder.decode(ctx, channel, rand);
            Assert.assertEquals(rand, obj);
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.