Created
July 23, 2013 13:15
-
-
Save devzendo/6062279 to your computer and use it in GitHub Desktop.
Netty test
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Test | |
public void test() { | |
NarSystem.loadLibrary(); | |
UnpooledNativeByteBufAllocator allocator = UnpooledNativeByteBufAllocator.DEFAULT; | |
ByteBuf buf = allocator.directBuffer(); | |
Assert.assertTrue(buf.isDirect()); | |
buf.release(); | |
Assert.assertEquals(0, buf.refCnt()); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment