public void testDatabaseDriverPropertiesUserAndPasswordPropertyOverrideDSUserAndPassword(){
  String driverPropertyString="user=APP;password=egg;CreateDatabase=create";
  Properties props=new Properties();
  props.setProperty(DatasourcePropertySet.USERNAME,"sa");
  props.setProperty(DatasourcePropertySet.PASSWORD,"");
  props.setProperty(DatasourcePropertySet.CONNECTION_PROPERTIES,driverPropertyString);
  DataSource ds=dataSourceConverter.fromProperties(props);
  assertEquals("APP",ds.getUsername());
  assertEquals("egg",ds.getPassword());
}

public void testDatabaseDriverPropertiesUserAndPasswordPropertyOverrideDSUserAndPassword ( ) { String driverPropertyString = "user=APP;password=egg;CreateDatabase=create" ; Properties props = new Properties ( ) ; props . setProperty ( DatasourcePropertySet . USERNAME , "sa" ) ; props . setProperty ( DatasourcePropertySet . PASSWORD , "" ) ; props . setProperty ( DatasourcePropertySet . CONNECTION_PROPERTIES , driverPropertyString ) ; DataSource ds = dataSourceConverter . fromProperties ( props ) ; assertEquals ( "APP" , ds . getUsername ( ) ) ; assertEquals ( "egg" , ds . getPassword ( ) ) ; }
test the driver properties when the username and the password is set on datasource .
