diff --git a/kernel/sql-translator/distsql/handler/src/test/java/org/apache/shardingsphere/sqltranslator/distsql/handler/update/AlterSQLTranslatorRuleStatementUpdaterTest.java b/kernel/sql-translator/distsql/handler/src/test/java/org/apache/shardingsphere/sqltranslator/distsql/handler/update/AlterSQLTranslatorRuleStatementUpdaterTest.java index 78ee61e64be56..ad32bb58bf4bd 100644 --- a/kernel/sql-translator/distsql/handler/src/test/java/org/apache/shardingsphere/sqltranslator/distsql/handler/update/AlterSQLTranslatorRuleStatementUpdaterTest.java +++ b/kernel/sql-translator/distsql/handler/src/test/java/org/apache/shardingsphere/sqltranslator/distsql/handler/update/AlterSQLTranslatorRuleStatementUpdaterTest.java @@ -37,12 +37,12 @@ class AlterSQLTranslatorRuleStatementUpdaterTest { void assertExecute() { AlterSQLTranslatorRuleStatementUpdater updater = new AlterSQLTranslatorRuleStatementUpdater(); SQLTranslatorRuleConfiguration actual = updater.buildAlteredRuleConfiguration(createSQLTranslatorRuleConfiguration(), new AlterSQLTranslatorRuleStatement("JOOQ", - PropertiesBuilder.build(new Property("foo", "fooValue")), null)); + PropertiesBuilder.build(new Property("foo", "bar")), null)); assertThat(actual.getType(), is("JOOQ")); - assertTrue(actual.isUseOriginalSQLWhenTranslatingFailed()); assertFalse(actual.getProps().isEmpty()); String props = PropertiesConverter.convert(actual.getProps()); - assertTrue(props.contains("\"foo\":\"fooValue\"")); + assertThat(props, is("{\"foo\":\"bar\"}")); + assertTrue(actual.isUseOriginalSQLWhenTranslatingFailed()); } private SQLTranslatorRuleConfiguration createSQLTranslatorRuleConfiguration() {