List of usage examples for io.netty.handler.codec.http DefaultFullHttpRequest refCnt
@Override public int refCnt()
From source file:com.corundumstudio.socketio.handler.AuthorizeHandlerTest.java
License:Apache License
@Test public void shouldAuthorizeRequest() throws Exception { prepareAuthorizationListener(true, null); channel.writeInbound(new DefaultFullHttpRequest(HttpVersion.HTTP_1_1, HttpMethod.GET, TEST_URI)); // then/*from www . ja v a 2 s . c o m*/ Object in = channel.readInbound(); assertTrue(in instanceof DefaultFullHttpRequest); DefaultFullHttpRequest req = (DefaultFullHttpRequest) in; assertEquals(1, req.refCnt()); }