@Test public void withInitialSqlFromResourceFound() { assertEquals(1, new InternalEmbeddedDatabaseCreatorBuilder(Engine.HSQLDB) .withInitialSqlFromResource("classpath:initial.sql").initializationPlugins.size()); }
@Override public AbstractEmbeddedDatabaseCreatorBuilder<C> withInitialSqlFromResource(final String resource) { if (null == resource) { throw new IllegalArgumentException("The value of the \"resource\" argument can not be null"); } return withInitialSqlFromResource(resource, StandardCharsets.UTF_8); }
AbstractEmbeddedDatabaseCreatorBuilder implements EmbeddedDatabaseCreatorBuilder<C> { @Override public AbstractEmbeddedDatabaseCreatorBuilder<C> withInitialSqlFromResource(final String resource) { if (null == resource) { throw new IllegalArgumentException("The value of the \"resource\" argument can not be null"); } return withInitialSqlFromResource(resource, StandardCharsets.UTF_8); } }
AbstractEmbeddedDatabaseCreatorBuilder implements EmbeddedDatabaseCreatorBuilder<C> { @Override public AbstractEmbeddedDatabaseCreatorBuilder<C> withInitialSqlFromResource(final String resource) { if (null == resource) { throw new IllegalArgumentException("The value of the \"resource\" argument can not be null"); } return withInitialSqlFromResource(resource, StandardCharsets.UTF_8); } AbstractEmbeddedDatabaseCreatorBuilder(final Engine engine); }
AbstractEmbeddedDatabaseCreatorBuilder implements EmbeddedDatabaseCreatorBuilder<C> { @Override public AbstractEmbeddedDatabaseCreatorBuilder<C> withInitialSqlFromResource(final String resource) { if (null == resource) { throw new IllegalArgumentException("The value of the \"resource\" argument can not be null"); } return withInitialSqlFromResource(resource, StandardCharsets.UTF_8); } AbstractEmbeddedDatabaseCreatorBuilder(final Engine engine); @Override AbstractEmbeddedDatabaseCreatorBuilder<C> withName(final String name); @Override AbstractEmbeddedDatabaseCreatorBuilder<C> withInitialSql(final String sql); @Override AbstractEmbeddedDatabaseCreatorBuilder<C> withInitialSqlFromResource(final String resource); @Override AbstractEmbeddedDatabaseCreatorBuilder<C> withInitialSqlFromResource(final String resource, final Charset charset); AbstractEmbeddedDatabaseCreatorBuilder<C> withMode(final String mode); @Override AbstractEmbeddedDatabaseCreatorBuilder<C> withMode(final CompatibilityMode compatibilityMode); @Override AbstractEmbeddedDatabaseCreatorBuilder<C> initializedByPlugin(final P plugin); @Override AbstractEmbeddedDatabaseCreatorBuilder<C> withProperty(final String property, final String value); @Override AbstractEmbeddedDatabaseCreatorBuilder<C> withoutAutoCommit(); }
AbstractEmbeddedDatabaseCreatorBuilder implements EmbeddedDatabaseCreatorBuilder<C> { @Override public AbstractEmbeddedDatabaseCreatorBuilder<C> withInitialSqlFromResource(final String resource) { if (null == resource) { throw new IllegalArgumentException("The value of the \"resource\" argument can not be null"); } return withInitialSqlFromResource(resource, StandardCharsets.UTF_8); } AbstractEmbeddedDatabaseCreatorBuilder(final Engine engine); @Override AbstractEmbeddedDatabaseCreatorBuilder<C> withName(final String name); @Override AbstractEmbeddedDatabaseCreatorBuilder<C> withInitialSql(final String sql); @Override AbstractEmbeddedDatabaseCreatorBuilder<C> withInitialSqlFromResource(final String resource); @Override AbstractEmbeddedDatabaseCreatorBuilder<C> withInitialSqlFromResource(final String resource, final Charset charset); AbstractEmbeddedDatabaseCreatorBuilder<C> withMode(final String mode); @Override AbstractEmbeddedDatabaseCreatorBuilder<C> withMode(final CompatibilityMode compatibilityMode); @Override AbstractEmbeddedDatabaseCreatorBuilder<C> initializedByPlugin(final P plugin); @Override AbstractEmbeddedDatabaseCreatorBuilder<C> withProperty(final String property, final String value); @Override AbstractEmbeddedDatabaseCreatorBuilder<C> withoutAutoCommit();  }