Package org.dbunit.database.DatabaseConfig

Examples of org.dbunit.database.DatabaseConfig.ConfigProperty


   * @param propertyName the name of the property
   * @param dataConfigPropertyName the data config property name
   * @param value the value to set
   */
  private void setProperty(String propertyName, String dataConfigPropertyName, Object value) {
    ConfigProperty configProperty = CONFIG_PROPERTIES.get(dataConfigPropertyName);
    Assert.state(configProperty != null, "Unsupported config property " + dataConfigPropertyName + " for "
        + propertyName);
    if (!configProperty.isNullable()) {
      Assert.notNull(value, propertyName + " cannot be null");
    }
    if (value != null) {
      Assert.isInstanceOf(configProperty.getPropertyType(), value, "Unable to set " + propertyName + " ");
    }
    this.databaseConfig.setProperty(dataConfigPropertyName, value);
  }
View Full Code Here

TOP

Related Classes of org.dbunit.database.DatabaseConfig.ConfigProperty

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.