use of org.apache.openejb.testing.Configuration in project tomee by apache.
the class AppComposerAsJUnitRuleTest 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 ReloadableEntityManagerFactoryTest method config.
@Configuration
public Properties config() {
final Properties p = new Properties();
p.put("ReloadableEntityManagerFactoryTest", "new://Resource?type=DataSource");
p.put("ReloadableEntityManagerFactoryTest.JdbcDriver", "org.hsqldb.jdbcDriver");
p.put("ReloadableEntityManagerFactoryTest.JdbcUrl", "jdbc:hsqldb:mem:bval");
return p;
}
use of org.apache.openejb.testing.Configuration in project tomee by apache.
the class ResourceLocalCdiEmTest method config.
@Configuration
public Properties config() {
// avoid linkage error on mac, only used for tests so don't need to add it in Core
JULLoggerFactory.class.getName();
final Properties p = new Properties();
p.put("ResourceLocalCdiEmTest", "new://Resource?type=DataSource");
p.put("ResourceLocalCdiEmTest.JdbcDriver", "org.hsqldb.jdbcDriver");
p.put("ResourceLocalCdiEmTest.JdbcUrl", "jdbc:hsqldb:mem:ResourceLocalCdiEmTest");
p.put("ResourceLocalCdiEmTest.JtaManaged", "false");
return p;
}
use of org.apache.openejb.testing.Configuration in project tomee by apache.
the class ResourceLocalEmInjectionTest method config.
@Configuration
public Properties config() {
// avoid linkage error on mac, only used for tests so don't need to add it in Core
JULLoggerFactory.class.getName();
final Properties p = new Properties();
p.put("ResourceLocalEmInjectionTest", "new://Resource?type=DataSource");
p.put("ResourceLocalEmInjectionTest.JdbcDriver", "org.hsqldb.jdbcDriver");
p.put("ResourceLocalEmInjectionTest.JdbcUrl", "jdbc:hsqldb:mem:ResourceLocalEmInjectionTest");
return p;
}
use of org.apache.openejb.testing.Configuration in project tomee by apache.
the class ClasspathAPITest method config.
@Configuration
public Properties config() {
// using relative path avoids issue between IDE/surefire (. = target for surefire) and URI format
final Path here = new File(".").getAbsoluteFile().toPath();
final Path classes = jarLocation(ClasspathAPITest.class).getAbsoluteFile().toPath();
return new PropertiesBuilder().p("r", "new://Resource?class-name=org.apache.openejb.resource.ClasspathAPITest$MyImpl&" + "classpath-api=java.util.concurrent.Callable&" + "classpath=" + classes.relativize(here).toString().replace(File.separator, "/")).build();
}
Aggregations