@Test public void testWrite() { ByteBuf buf = Unpooled.buffer(); Magic.writeMagic(buf); byte[] bytes = new byte[Magic.MAGIC.length]; buf.readBytes(bytes); assertArrayEquals(Magic.MAGIC, bytes); }
public static void writeMagic(ByteBuf buf) { buf.writeBytes(MAGIC); }
Magic { public static void writeMagic(ByteBuf buf) { buf.writeBytes(MAGIC); } }
Magic { public static void writeMagic(ByteBuf buf) { buf.writeBytes(MAGIC); }  }
Magic { public static void writeMagic(ByteBuf buf) { buf.writeBytes(MAGIC); }  static void readAndCheckMagic(ByteBuffer buf); static void readAndCheckMagic(ByteBuf buf); static void writeMagic(ByteBuf buf); static int length(); }
Magic { public static void writeMagic(ByteBuf buf) { buf.writeBytes(MAGIC); }  static void readAndCheckMagic(ByteBuffer buf); static void readAndCheckMagic(ByteBuf buf); static void writeMagic(ByteBuf buf); static int length();  }