String message = tableNames+" expectedTableNames:"+Arrays.toString(expectedTableNames);
assertEquals(message,tableNames.size(),expectedTableNames.length);
for(int i = 0; i < expectedTableNames.length; i++) {
String expectedTableName = expectedTableNames[i];
NameWithAlias expectedTable = SqlParseHelper.parseTableSqlAlias(expectedTableName);
for(NameWithAlias s : tableNames) {
if(s.getName().equalsIgnoreCase(expectedTable.getName())) {
assertEquals("name:"+s.getName()+" alias:"+s.getAlias(),s.getAlias(),expectedTable.getAlias());
}
}
// assertTrue("actual tableNames:"+tableNames.toString(),expected);
}
}