From 6a7c5860f41bc6b15c79418677ba0508b9031ffd Mon Sep 17 00:00:00 2001 From: godotg Date: Fri, 6 Oct 2023 09:14:38 +0800 Subject: [PATCH] del[char]: delete unused char serialization method --- .../com/zfoo/protocol/buffer/ByteBufUtilsTest.java | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/protocol/src/test/java/com/zfoo/protocol/buffer/ByteBufUtilsTest.java b/protocol/src/test/java/com/zfoo/protocol/buffer/ByteBufUtilsTest.java index cfc99817e..a2e418ba7 100644 --- a/protocol/src/test/java/com/zfoo/protocol/buffer/ByteBufUtilsTest.java +++ b/protocol/src/test/java/com/zfoo/protocol/buffer/ByteBufUtilsTest.java @@ -100,17 +100,4 @@ public void stringTest() { Assert.assertEquals(result, str); } - @Test - public void charTest() { - char c = 'a'; - ByteBuf byteBuf = Unpooled.buffer(); - ByteBufUtils.writeChar(byteBuf, c); - char result = ByteBufUtils.readChar(byteBuf); - Assert.assertEquals(result, c); - - Character d = null; - ByteBufUtils.writeCharBox(byteBuf, d); - Assert.assertEquals(ByteBufUtils.readCharBox(byteBuf), Character.valueOf(Character.MIN_VALUE)); - } - }