diff --git a/infra/common/src/test/java/cn/hippo4j/common/toolkit/ContentUtilTest.java b/infra/common/src/test/java/cn/hippo4j/common/toolkit/ContentUtilTest.java index 02baa272..fc2b614d 100644 --- a/infra/common/src/test/java/cn/hippo4j/common/toolkit/ContentUtilTest.java +++ b/infra/common/src/test/java/cn/hippo4j/common/toolkit/ContentUtilTest.java @@ -31,7 +31,7 @@ public class ContentUtilTest { .itemId("dynamic-threadpool-example").tpId("message-consume").content("描述信息").corePoolSize(1) .maximumPoolSize(2).queueType(1).capacity(4).keepAliveTime(513L).executeTimeOut(null).rejectedType(4) .isAlarm(1).capacityAlarm(80).livenessAlarm(80).allowCoreThreadTimeOut(1).build(); - Assert.isTrue(testText.equals(ContentUtil.getPoolContent(threadPoolParameterInfo))); + Assert.isTrue(ContentUtil.getPoolContent(JSONUtil.parseObject(testText, ThreadPoolParameterInfo.class)).equals(ContentUtil.getPoolContent(threadPoolParameterInfo))); } @Test