Skip to content

Commit

Permalink
Update UT
Browse files Browse the repository at this point in the history
  • Loading branch information
Pace2Car committed Nov 22, 2023
1 parent 4b00721 commit de3e65d
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit de3e65d

Please sign in to comment.