Skip to content

Commit

Permalink
Which Issue(s) This PR Fixes
Browse files Browse the repository at this point in the history
Add test cases for org.apache.rocketmq.common.chain/coldstr/compression/consumer
Fixes apache#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.
  • Loading branch information
TeFuirnever committed Aug 6, 2024
1 parent 60241b1 commit d56961a
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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");
}
Expand Down

0 comments on commit d56961a

Please sign in to comment.