use of org.apache.openejb.jee.EjbJar$JAXB in project tomee by apache.
the class CheckInvalidAnnotatedInterfacesTest method noAttributes.
@Keys({ @Key("ann.local.noAttributes"), @Key("ann.remote.noAttributes") })
public EjbJar noAttributes() {
final EjbJar ejbJar = new EjbJar();
ejbJar.addEnterpriseBean(new StatelessBean(FooBeanLocal.class));
ejbJar.addEnterpriseBean(new StatelessBean(FooBeanRemote.class));
return ejbJar;
}
use of org.apache.openejb.jee.EjbJar$JAXB in project tomee by apache.
the class CheckInvalidAroundTimeoutTest method testIgnoredAroundTimeout.
@Keys(@Key(value = "ignoredMethodAnnotation", type = KeyType.WARNING))
public EjbJar testIgnoredAroundTimeout() throws Exception {
final EjbJar ejbJar = new EjbJar();
ejbJar.addEnterpriseBean(new StatefulBean("TestAroundTimeout", TestAroundTimeout.class));
return ejbJar;
}
use of org.apache.openejb.jee.EjbJar$JAXB in project tomee by apache.
the class CheckInvalidAroundTimeoutTest method testInvalidAroundTimeoutReturnValue.
@Keys({ @Key(value = "aroundInvoke.badReturnType", count = 2), @Key(value = "aroundInvoke.mustThrowException", count = 2) })
public EjbJar testInvalidAroundTimeoutReturnValue() throws Exception {
final EjbJar ejbJar = new EjbJar();
ejbJar.addEnterpriseBean(new StatelessBean("TestInvalidAroundTimeoutReturnValueBean", TestInvalidAroundTimeoutReturnValueBean.class));
ejbJar.addInterceptor(new Interceptor(TestInvalidAroundTimeoutReturnValueInterceptor.class));
return ejbJar;
}
use of org.apache.openejb.jee.EjbJar$JAXB in project tomee by apache.
the class CheckInvalidAsynchronousAnnotationsTest method ejbJarWithMessageDrivenBean.
private static EjbJar ejbJarWithMessageDrivenBean(final Class<?> beanClass) {
final EjbJar ejbJar = new EjbJar();
ejbJar.addEnterpriseBean(new MessageDrivenBean(beanClass));
return ejbJar;
}
use of org.apache.openejb.jee.EjbJar$JAXB in project tomee by apache.
the class CheckInvalidAsynchronousAnnotationsTest method ejbJarWithStatelessBean.
private static EjbJar ejbJarWithStatelessBean(final Class<?> beanClass) {
final EjbJar ejbJar = new EjbJar();
ejbJar.addEnterpriseBean(new StatelessBean(beanClass));
return ejbJar;
}
Aggregations