use of org.apache.openejb.testing.Configuration in project tomee by apache.
the class DefaultPropertiesProviderTest method config.
@Configuration
public Properties config() {
final Properties p = new Properties();
p.put(PropertiesResourceProvider.class.getName(), GlobalPropertiesProvider.class.getName());
p.put("r1", "new://Resource?" + "class-name=org.apache.openejb.resource.DefaultPropertiesProviderTest$MyResource");
p.put("r1.value", "_____________________");
p.put("_r2", "new://Resource?" + "class-name=org.apache.openejb.resource.DefaultPropertiesProviderTest$MyResource" + "&properties-provider=org.apache.openejb.resource.DefaultPropertiesProviderTest$SpecificPropertiesProvider");
p.put("_r2.value", "____________________");
p.put("_r3", "new://Resource?" + "class-name=org.apache.openejb.resource.DefaultPropertiesProviderTest$MyResource");
p.put("_r3.value", "3");
return p;
}
use of org.apache.openejb.testing.Configuration in project tomee by apache.
the class TemplateTest method config.
@Configuration
public Properties config() {
final Properties p = new Properties();
p.put("r1", "new://Resource?template=org.apache.openejb.resource.TemplateTest$MyTemplate");
return p;
}
use of org.apache.openejb.testing.Configuration in project tomee by apache.
the class JMXDataSourceTest method config.
@Configuration
public Properties config() {
final Properties p = new Properties();
p.put(LocalMBeanServer.OPENEJB_JMX_ACTIVE, Boolean.TRUE.toString());
p.put("JMXDataSourceTest", "new://Resource?type=DataSource");
p.put("JMXDataSourceTest.JdbcDriver", "org.hsqldb.jdbcDriver");
p.put("JMXDataSourceTest.JdbcUrl", "jdbc:hsqldb:mem:bval");
return p;
}
use of org.apache.openejb.testing.Configuration in project tomee by apache.
the class EntitiesScanningPackageLimitedTest method config.
@Configuration
public Properties config() {
final Properties p = new Properties();
p.put("cczczczedc2", "new://Resource?type=DataSource");
p.put("cczczczedc2.JdbcDriver", "org.hsqldb.jdbcDriver");
p.put("cczczczedc2.JdbcUrl", "jdbc:hsqldb:mem:cczccdzcz2");
return p;
}
use of org.apache.openejb.testing.Configuration in project tomee by apache.
the class DataSourceDefinitionGlobalJPATest method config.
// useless but add another datasource so resolution should be more tricky, name before d
@Configuration
public Properties config() {
final Properties p = new Properties();
p.put("cczczcz", "new://Resource?type=DataSource");
p.put("cczczcz.JdbcDriver", "org.hsqldb.jdbcDriver");
p.put("cczczcz.JdbcUrl", "jdbc:hsqldb:mem:cczczcz");
return p;
}
Aggregations