use of org.apache.openejb.testing.Module in project tomee by apache.
the class ActiveMQResourceAdapterControlTest method app.
@Module
@Classes(value = Mdb.class)
public EjbModule app() {
return new EjbModule(new EjbJar("test"), new OpenejbJar() {
{
setId("test");
getEjbDeployment().add(new EjbDeployment() {
{
setEjbName("ejb/Mdb");
getProperties().put("MdbActiveOnStartup", "false");
getProperties().put("MdbJMXControl", "default:type=test");
}
});
}
});
}
use of org.apache.openejb.testing.Module in project tomee by apache.
the class StatefulDecoratorInjectionTest method getBeans.
@Module
public Beans getBeans() {
final Beans beans = new Beans();
beans.addDecorator(OrangeSecurity.class);
return beans;
}
use of org.apache.openejb.testing.Module in project tomee by apache.
the class BasicObserverTest method getBeans.
@Module
public Beans getBeans() {
final Beans beans = new Beans();
beans.addManagedClass(SuperHero.class);
return beans;
}
use of org.apache.openejb.testing.Module in project tomee by apache.
the class CdiDecoratorMultipleDelegateCallsTest method classes.
@Module
@Classes({ ServiceImpl.class })
public EjbModule classes() {
final Beans beans = new Beans();
beans.addDecorator(ServiceDecorator.class);
final EjbModule jar = new EjbModule(new EjbJar());
jar.setBeans(beans);
return jar;
}
use of org.apache.openejb.testing.Module in project tomee by apache.
the class DependentScopedTest method getBeans.
@Module
public Beans getBeans() {
final Beans beans = new Beans();
// beans.addManagedClass(ColorWheel.class);
beans.addManagedClass(Red.class);
beans.addManagedClass(Orange.class);
beans.addManagedClass(Yellow.class);
beans.addManagedClass(Green.class);
beans.addManagedClass(Blue.class);
beans.addManagedClass(Violet.class);
return beans;
}
Aggregations