From d56961a3c3fba3167b4f5aac954645c11e53bf2a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=88=91=E6=98=AF=E7=AE=A1=E5=B0=8F=E4=BA=AE=5FV0x3f?= <504897664@qq.com> Date: Wed, 7 Aug 2024 01:10:23 +0800 Subject: [PATCH] Which Issue(s) This PR Fixes Add test cases for org.apache.rocketmq.common.chain/coldstr/compression/consumer Fixes #8503 Brief Description add test case for org.apache.rocketmq.common.chain/coldstr/compression/consumer in commom module by using tongyi tools. How Did You Test This Change? run test case successfull. --- .../rocketmq/common/compression/CompressionTypeTest.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/common/src/test/java/org/apache/rocketmq/common/compression/CompressionTypeTest.java b/common/src/test/java/org/apache/rocketmq/common/compression/CompressionTypeTest.java index faa4325be51..e0ec18fd44b 100644 --- a/common/src/test/java/org/apache/rocketmq/common/compression/CompressionTypeTest.java +++ b/common/src/test/java/org/apache/rocketmq/common/compression/CompressionTypeTest.java @@ -33,9 +33,9 @@ public void testCompressionTypeValues() { @Test public void testCompressionTypeOf() { - assertEquals(CompressionType.LZ4, CompressionType.of("LZ4"), "CompressionType.of(\"LZ4\") should return LZ4"); - assertEquals(CompressionType.ZSTD, CompressionType.of("ZSTD"), "CompressionType.of(\"ZSTD\") should return ZSTD"); - assertEquals(CompressionType.ZLIB, CompressionType.of("ZLIB"), "CompressionType.of(\"ZLIB\") should return ZLIB"); + assertEquals(CompressionType.LZ4, CompressionType.of("LZ4"), "CompressionType.of(LZ4) should return LZ4"); + assertEquals(CompressionType.ZSTD, CompressionType.of("ZSTD"), "CompressionType.of(ZSTD) should return ZSTD"); + assertEquals(CompressionType.ZLIB, CompressionType.of("ZLIB"), "CompressionType.of(ZLIB) should return ZLIB"); assertThrows(RuntimeException.class, () -> CompressionType.of("UNKNOWN"), "Unsupported compression type should throw RuntimeException"); }