Skip to content

Commit

Permalink
fix table count for new tables
Browse files Browse the repository at this point in the history
  • Loading branch information
erilong committed Jul 11, 2016
1 parent 4e2924e commit ab54061
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -147,8 +147,8 @@ public void exportTestDatabaseSQL() throws Exception {
export.setCompatible(Compatible.H2);
String output = export.exportTables(tables).toLowerCase();

Assert.assertEquals(output, 44, StringUtils.countMatches(output, "create table \"sym_"));
final int EXPECTED_VARCHAR_MAX = engine.getDatabasePlatform().getName().equals(DatabaseNamesConstants.SQLITE) ? 265 : 44;
Assert.assertEquals(output, 46, StringUtils.countMatches(output, "create table \"sym_"));
final int EXPECTED_VARCHAR_MAX = engine.getDatabasePlatform().getName().equals(DatabaseNamesConstants.SQLITE) ? 265 : 50;
final String EXPECTED_STRING = "varchar(" + Integer.MAX_VALUE + ")";
Assert.assertEquals("Expected " + EXPECTED_VARCHAR_MAX + " " + EXPECTED_STRING
+ " in the following output: " + output, EXPECTED_VARCHAR_MAX,
Expand Down

0 comments on commit ab54061

Please sign in to comment.