Package cn.org.rapid_framework.generator.util.sqlparse.SqlParseHelper

Examples of cn.org.rapid_framework.generator.util.sqlparse.SqlParseHelper.NameWithAlias


      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);
    }
  }
View Full Code Here

TOP

Related Classes of cn.org.rapid_framework.generator.util.sqlparse.SqlParseHelper.NameWithAlias

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.