### Question:
SchemaGen { void generate() throws IOException { Ejb3Configuration configurator = new Ejb3Configuration(); configurator.setProperty(Environment.DIALECT, dialect.toString()); model.configure(configurator); configurator.addAnnotatedClass(StoreOptionEntity.class); SchemaExport export = new SchemaExport(configurator.getHibernateConfiguration()); export.setOutputFile(new File(outputPath, CREATE_FILE_NAME).getCanonicalPath()); if (this.delimiter != null ) { export.setDelimiter( (this.newLineAfterStatement ? ("\r" + delimiter) : delimiter) ); } else if (this.newLineAfterStatement) { export.setDelimiter("\r"); } export.execute(false, false, false, true); export.setOutputFile(new File(outputPath, DROP_FILE_NAME).getCanonicalPath()); export.drop(false, false); } SchemaGen(String dialect, String model, File outputPath);  SchemaGen( String dialect,
                      String model,
                      File outputPath,
                      String delimiter); void setNewLineAfterStatement(boolean newLine); static void main( String[] args ); static final String CREATE_FILE_NAME; static final String DROP_FILE_NAME; static final String USAGE; }### Answer:
@Test public void shouldCreateSchemaForHSqlDialect() throws IOException { SchemaGen main = new SchemaGen("org.hibernate.dialect.HSQLDialect", MODEL_NAME, outputPath); main.generate(); checkFiles(); }
@Test public void shouldCreateSchemaForOracleDialect() throws IOException { SchemaGen main = new SchemaGen("org.hibernate.dialect.Oracle10gDialect", MODEL_NAME, outputPath); main.generate(); checkFiles(); }
@Test public void shouldCreateSchemaForDialectThatIsNotFullyQualified() throws IOException { SchemaGen main = new SchemaGen("HSQLDialect", MODEL_NAME, outputPath); main.generate(); checkFiles(); }
@Test public void shouldCreateSchemaForShortFormDialect() throws IOException { SchemaGen main = new SchemaGen("HSQL", MODEL_NAME, outputPath); main.generate(); checkFiles(); }
@Test public void shouldCreateSchemaForOracleDialectWithDelimiter() throws IOException { SchemaGen main = new SchemaGen("org.hibernate.dialect.Oracle10gDialect", MODEL_NAME, outputPath, ";"); main.generate(); checkFiles(); }
@Test public void shouldCreateSchemaForDialectThatIsNotFullyQualifiedWithDelimiter() throws IOException { SchemaGen main = new SchemaGen("HSQLDialect", MODEL_NAME, outputPath, "%"); main.generate(); checkFiles(); }