@Test public void withInitialSqlNull() { assertThrows(IllegalArgumentException.class, () -> new InternalEmbeddedDatabaseCreatorBuilder(Engine.H2).withInitialSql(null)); }
@Override public AbstractEmbeddedDatabaseCreatorBuilder<C> withInitialSql(final String sql) { if (sql == null) { throw new IllegalArgumentException("The value of the \"sql\" argument can not be null"); } return initializedByPlugin(new SQLInitializationPlugin(sql)); }
AbstractEmbeddedDatabaseCreatorBuilder implements EmbeddedDatabaseCreatorBuilder<C> { @Override public AbstractEmbeddedDatabaseCreatorBuilder<C> withInitialSql(final String sql) { if (sql == null) { throw new IllegalArgumentException("The value of the \"sql\" argument can not be null"); } return initializedByPlugin(new SQLInitializationPlugin(sql)); } }
AbstractEmbeddedDatabaseCreatorBuilder implements EmbeddedDatabaseCreatorBuilder<C> { @Override public AbstractEmbeddedDatabaseCreatorBuilder<C> withInitialSql(final String sql) { if (sql == null) { throw new IllegalArgumentException("The value of the \"sql\" argument can not be null"); } return initializedByPlugin(new SQLInitializationPlugin(sql)); } AbstractEmbeddedDatabaseCreatorBuilder(final Engine engine); }
AbstractEmbeddedDatabaseCreatorBuilder implements EmbeddedDatabaseCreatorBuilder<C> { @Override public AbstractEmbeddedDatabaseCreatorBuilder<C> withInitialSql(final String sql) { if (sql == null) { throw new IllegalArgumentException("The value of the \"sql\" argument can not be null"); } return initializedByPlugin(new SQLInitializationPlugin(sql)); } 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> withInitialSql(final String sql) { if (sql == null) { throw new IllegalArgumentException("The value of the \"sql\" argument can not be null"); } return initializedByPlugin(new SQLInitializationPlugin(sql)); } 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();  }