org.dbunit.PropertiesBasedJdbcDatabaseTester Java Examples
The following examples show how to use
org.dbunit.PropertiesBasedJdbcDatabaseTester.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: AbstractDaoTestCase.java From Asqatasun with GNU Affero General Public License v3.0 | 6 votes |
public AbstractDaoTestCase(String testName) { super(testName); ApplicationContext springApplicationContext = new FileSystemXmlApplicationContext(SPRING_FILE_PATH); springBeanFactory = springApplicationContext; DriverManagerDataSource dmds = (DriverManagerDataSource)springBeanFactory.getBean("dataSource"); System.setProperty( PropertiesBasedJdbcDatabaseTester.DBUNIT_DRIVER_CLASS, JDBC_DRIVER); System.setProperty( PropertiesBasedJdbcDatabaseTester.DBUNIT_CONNECTION_URL, dmds.getUrl()); System.setProperty(PropertiesBasedJdbcDatabaseTester.DBUNIT_USERNAME, dmds.getUsername()); System.setProperty(PropertiesBasedJdbcDatabaseTester.DBUNIT_PASSWORD, dmds.getPassword()); }
Example #2
Source File: AbstractDaoTestCase.java From Asqatasun with GNU Affero General Public License v3.0 | 6 votes |
public AbstractDaoTestCase(String testName) { super(testName); ApplicationContext springApplicationContext = new FileSystemXmlApplicationContext(SPRING_FILE_PATH); springBeanFactory = springApplicationContext; DriverManagerDataSource dmds = (DriverManagerDataSource)springBeanFactory.getBean("dataSource"); System.setProperty( PropertiesBasedJdbcDatabaseTester.DBUNIT_DRIVER_CLASS, JDBC_DRIVER); System.setProperty( PropertiesBasedJdbcDatabaseTester.DBUNIT_CONNECTION_URL, dmds.getUrl()); System.setProperty(PropertiesBasedJdbcDatabaseTester.DBUNIT_USERNAME, dmds.getUsername()); System.setProperty(PropertiesBasedJdbcDatabaseTester.DBUNIT_PASSWORD, dmds.getPassword()); }
Example #3
Source File: DatabaseWriterTest.java From LicenseScout with Apache License 2.0 | 5 votes |
public DatabaseWriterTest(String name) { super(name); System.setProperty(PropertiesBasedJdbcDatabaseTester.DBUNIT_DRIVER_CLASS, DRIVER_CLASS); System.setProperty(PropertiesBasedJdbcDatabaseTester.DBUNIT_CONNECTION_URL, JDBC_URL); System.setProperty(PropertiesBasedJdbcDatabaseTester.DBUNIT_USERNAME, USERNAME); System.setProperty(PropertiesBasedJdbcDatabaseTester.DBUNIT_PASSWORD, PASSWORD); }
Example #4
Source File: AbstractRuleImplementationTestCase.java From Asqatasun with GNU Affero General Public License v3.0 | 3 votes |
private void setUpDatabase() { System.setProperty( PropertiesBasedJdbcDatabaseTester.DBUNIT_DRIVER_CLASS, JDBC_DRIVER); System.setProperty( PropertiesBasedJdbcDatabaseTester.DBUNIT_CONNECTION_URL, DATABASE); System.setProperty(PropertiesBasedJdbcDatabaseTester.DBUNIT_USERNAME, USER); System.setProperty(PropertiesBasedJdbcDatabaseTester.DBUNIT_PASSWORD, PASSWORD); }
Example #5
Source File: SingleDBBaseTestCase.java From Zebra with Apache License 2.0 | -4 votes |
public SingleDBBaseTestCase() { System.setProperty(PropertiesBasedJdbcDatabaseTester.DBUNIT_DRIVER_CLASS, getDriverName()); System.setProperty(PropertiesBasedJdbcDatabaseTester.DBUNIT_CONNECTION_URL, getDBUrl()); }