Skip to content

Commit

Permalink
Fix UT
Browse files Browse the repository at this point in the history
  • Loading branch information
Pace2Car committed Nov 21, 2023
1 parent 81a5a48 commit 9af67fd
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,16 +49,18 @@ void assertExecute() {
Iterator<LocalDataQueryResultRow> iterator = actual.iterator();
LocalDataQueryResultRow row = iterator.next();
assertThat(row.getCell(1), is("NATIVE"));
assertThat(row.getCell(2), is("true"));
assertThat(row.getCell(2), is(""));
assertThat(row.getCell(3), is("true"));
}

@Test
void assertGetColumnNames() {
ShowSQLTranslatorRuleExecutor executor = new ShowSQLTranslatorRuleExecutor();
Collection<String> columns = executor.getColumnNames();
assertThat(columns.size(), is(2));
assertThat(columns.size(), is(3));
Iterator<String> iterator = columns.iterator();
assertThat(iterator.next(), is("type"));
assertThat(iterator.next(), is("props"));
assertThat(iterator.next(), is("use_original_sql_when_translating_failed"));
}

Expand Down

0 comments on commit 9af67fd

Please sign in to comment.