src/test/java/gov/usgs/cida/pubs/springinit/DbTestConfig.java
@Bean
	public DatabaseConfigBean dbUnitDatabaseConfig() {
		DatabaseConfigBean dbUnitDbConfig = new DatabaseConfigBean();
		dbUnitDbConfig.setDatatypeFactory(new PubsDataTypeFactory());
		dbUnitDbConfig.setQualifiedTableNames(false);
		dbUnitDbConfig.setTableType(new String[] {"TABLE","MATERIALIZED VIEW"});
		return dbUnitDbConfig;
	}
//Bean to support DBunit for unit testing with PostgrSQL.
Bean to support DBunit for unit testing with PostgrSQL.
Bean to support DBunit for unit testing with PostgrSQL .
@Bean
	public DatabaseConfigBean dbUnitDatabaseConfig() {
		DatabaseConfigBean dbUnitDbConfig = new DatabaseConfigBean();
		dbUnitDbConfig.setDatatypeFactory(new PubsDataTypeFactory());
		dbUnitDbConfig.setQualifiedTableNames(false);
		dbUnitDbConfig.setTableType(new String[] {"TABLE","MATERIALIZED VIEW"});
		return dbUnitDbConfig;
	}
@ Bean public DatabaseConfigBean dbUnitDatabaseConfig ( ) { DatabaseConfigBean dbUnitDbConfig = new DatabaseConfigBean ( ) ; dbUnitDbConfig . setDatatypeFactory ( new PubsDataTypeFactory ( ) ) ; dbUnitDbConfig . setQualifiedTableNames ( false ) ; dbUnitDbConfig . setTableType ( new String [ ] { "TABLE" , "MATERIALIZED VIEW" } ) ; return dbUnitDbConfig ; }
Bean to support DBunit for unit testing with PostgrSQL.
Bean to support DBunit for unit testing with PostgrSQL .