Object[] params = new Object[] {
conf.getInteger(PARAM_PREFIX + "integer" + PARAM_PRECISION),
conf.getInteger(PARAM_PREFIX + "char" + PARAM_LENGTH) };
ByteArrayOutputStream out = new ByteArrayOutputStream();
DDLWriter writer = new DDLWriter(out, conf);
_generator.generateCreate(writer);
writer.close();
String ddl = out.toString();
boolean b = _expected.match(_engine, 0, ddl, params);
assertTrue("Generated DDL: " + ddl + "\n"
+ "Expected DDL: " + _expected.getLastMatchString(), b);
out = new ByteArrayOutputStream();
writer = new DDLWriter(out, conf);
_generator.generatePrimaryKey(writer);
writer.close();
ddl = out.toString();
b = _expected.match(_engine, 1, ddl, params);
assertTrue("Generated DDL: " + ddl + "\n"
+ "Expected DDL: " + _expected.getLastMatchString(), b);