Over a million developers have joined DZone.

Set Connection Properties When Using IDatabaseTester

·
Configure dbunit when using IDatabaseTester & Friends.


databaseTester = new DataSourceDatabaseTester(dataSource) {
			public IDatabaseConnection getConnection() throws Exception {
				IDatabaseConnection connection = super.getConnection();
				connection.getConfig().setFeature(DatabaseConfig.FEATURE_QUALIFIED_TABLE_NAMES, true);
				return connection;
			}
		};
Topics:

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}