use of org.apache.openejb.testing.Configuration in project tomee by apache.
the class TomcatPoolTest method config.
@Configuration
public Properties config() {
final Properties p = new Properties();
p.put("openejb.jdbc.datasource-creator", TomEEDataSourceCreator.class.getName());
p.put("managed", "new://Resource?type=DataSource");
p.put("managed.DriverClassName", "org.hsqldb.jdbcDriver");
p.put("managed.Url", URL);
p.put("managed.UserName", USER);
p.put("managed.Password", PASSWORD);
p.put("managed.JtaManaged", "true");
p.put("managed.JdbcInterceptors", "StatementCache(prepared=true)");
return p;
}
use of org.apache.openejb.testing.Configuration in project tomee by apache.
the class StatefulJPATest method config.
@Configuration
public Properties config() {
final Properties p = new Properties();
p.setProperty("StatefulJPATest", "new://Resource?type=DataSource");
p.setProperty("StatefulJPATest.JdbcDriver", "org.hsqldb.jdbcDriver");
p.setProperty("StatefulJPATest.JdbcUrl", "jdbc:hsqldb:mem:stateful-jpa");
return p;
}
use of org.apache.openejb.testing.Configuration in project tomee by apache.
the class StatelessContainerTest method config.
@Configuration
public Properties config() {
final Properties properties = new Properties();
properties.put("statelessContainer", "new://Container?type=STATELESS");
properties.put("statelessContainer.TimeOut", "10");
properties.put("statelessContainer.MaxSize", "0");
properties.put("statelessContainer.StrictPooling", "false");
return properties;
}
use of org.apache.openejb.testing.Configuration in project tomee by apache.
the class CustomPoolDataSourceTest method config.
@Configuration
public Properties config() {
final Properties p = new Properties();
p.put("managed", "new://Resource?type=DataSource");
p.put("managed.DataSourceCreator", CustomCreator.class.getName());
p.put("managed.JtaManaged", "false");
p.put("managed.Name", "custom");
return p;
}
use of org.apache.openejb.testing.Configuration in project tomee by apache.
the class JBossLikeDataSourceInjectionTest method config.
@Configuration
public Properties config() {
final Properties p = new Properties();
p.put("openejb.log.async", "false");
// to potential fail auto adjusting
p.put("noise", "new://Resource?type=DataSource");
p.put("java:/jdbc/DefaultDS", "new://Resource?type=DataSource");
p.put("java:/jdbc/DefaultDS.JdbcDriver", "org.hsqldb.jdbcDriver");
p.put("java:/jdbc/DefaultDS.JdbcUrl", URL);
p.put("java:/jdbc/DefaultDS.UserName", "sa");
return p;
}
Aggregations