DDLGenConfiguration conf = _generator.getConfiguration();
conf.setProperty(DDLGenConfiguration.SCHEMA_NAME_KEY, "test");
ByteArrayOutputStream out = new ByteArrayOutputStream();
DDLWriter writer = new DDLWriter(out, _generator.getConfiguration());
_generator.getSchema().toCreateDDL(writer);
writer.close();
String ddl = out.toString();
boolean b = _expected.match(_engine, 0, ddl, new String[] {"test"});
assertTrue("Generated DDL: " + ddl + "\n"
+ "Expected DDL: " + _expected.getLastMatchString(), b);
conf.setProperty(DDLGenConfiguration.SCHEMA_NAME_KEY, "");
out = new ByteArrayOutputStream();
writer = new DDLWriter(out, _generator.getConfiguration());
_generator.getSchema().toCreateDDL(writer);
writer.close();
ddl = out.toString();
b = _expected.match(_engine, 1, ddl, new String[] {});
assertTrue("Generated DDL: " + ddl + "\n"
+ "Expected DDL: " + _expected.getLastMatchString(), b);