@Test public void buildUsingIllegalCompatibilityString() { assertThrows(IllegalArgumentException.class, () -> new InternalEmbeddedDatabaseCreatorBuilder(Engine.H2).withMode("STUFF")); }
public AbstractEmbeddedDatabaseCreatorBuilder<C> withMode(final String mode) { if (!"".equals(mode)) { return withMode(mapToCompatibilityMode(mode)); } else { return this; } }
AbstractEmbeddedDatabaseCreatorBuilder implements EmbeddedDatabaseCreatorBuilder<C> { public AbstractEmbeddedDatabaseCreatorBuilder<C> withMode(final String mode) { if (!"".equals(mode)) { return withMode(mapToCompatibilityMode(mode)); } else { return this; } } }
AbstractEmbeddedDatabaseCreatorBuilder implements EmbeddedDatabaseCreatorBuilder<C> { public AbstractEmbeddedDatabaseCreatorBuilder<C> withMode(final String mode) { if (!"".equals(mode)) { return withMode(mapToCompatibilityMode(mode)); } else { return this; } } AbstractEmbeddedDatabaseCreatorBuilder(final Engine engine); }
AbstractEmbeddedDatabaseCreatorBuilder implements EmbeddedDatabaseCreatorBuilder<C> { public AbstractEmbeddedDatabaseCreatorBuilder<C> withMode(final String mode) { if (!"".equals(mode)) { return withMode(mapToCompatibilityMode(mode)); } else { return this; } } 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> { public AbstractEmbeddedDatabaseCreatorBuilder<C> withMode(final String mode) { if (!"".equals(mode)) { return withMode(mapToCompatibilityMode(mode)); } else { return this; } } 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();  }