use of org.apache.openejb.testing.Configuration in project tomee by apache.
the class DataSourceDefinitionPlaceHolderTest method properties.
@Configuration
public Properties properties() {
final Properties properties = new Properties();
properties.setProperty("jndi", "java:comp/env/superDS");
properties.setProperty("driver", "org.hsqldb.jdbc.JDBCDataSource");
properties.setProperty("user", "sa");
properties.setProperty("pwd", "");
properties.setProperty("url", "jdbc:hsqldb:mem:superDS");
return properties;
}
use of org.apache.openejb.testing.Configuration in project tomee by apache.
the class BeanValidationTest method config.
@Configuration
public Properties config() {
final Properties p = new Properties();
p.put("bvalDatabase", "new://Resource?type=DataSource");
p.put("bvalDatabase.JdbcDriver", "org.hsqldb.jdbcDriver");
p.put("bvalDatabase.JdbcUrl", "jdbc:hsqldb:mem:bval");
return p;
}
use of org.apache.openejb.testing.Configuration in project tomee by apache.
the class ProducedExtendedEmTest method config.
@Configuration
public Properties config() {
final Properties p = new Properties();
p.put("ProducedExtendedEmTest", "new://Resource?type=DataSource");
p.put("ProducedExtendedEmTest.JdbcDriver", "org.hsqldb.jdbcDriver");
p.put("ProducedExtendedEmTest.JdbcUrl", "jdbc:hsqldb:mem:produce-em-cdi");
return p;
}
use of org.apache.openejb.testing.Configuration in project tomee by apache.
the class EntitiesScanningTest method config.
@Configuration
public Properties config() {
final Properties p = new Properties();
p.put("cczczczedc", "new://Resource?type=DataSource");
p.put("cczczczedc.JdbcDriver", "org.hsqldb.jdbcDriver");
p.put("cczczczedc.JdbcUrl", "jdbc:hsqldb:mem:cczccdzcz");
return p;
}
Aggregations