use of org.apache.openejb.test.stateless.BasicStatelessBusinessLocal in project tomee by apache.
the class ContextLookupStatefulPojoBean method lookupStatelessBusinessLocal.
public void lookupStatelessBusinessLocal() throws TestFailureException {
try {
try {
final BasicStatelessBusinessLocal object = (BasicStatelessBusinessLocal) ejbContext.lookup("stateful/beanReferences/stateless-business-local");
Assert.assertNotNull("The EJB BusinessLocal is null", object);
} catch (final Exception e) {
Assert.fail("Received Exception " + e.getClass() + " : " + e.getMessage());
}
} catch (final AssertionFailedError afe) {
throw new TestFailureException(afe);
}
}
use of org.apache.openejb.test.stateless.BasicStatelessBusinessLocal in project tomee by apache.
the class ContextLookupStatefulBean method lookupStatelessBusinessLocal.
public void lookupStatelessBusinessLocal() throws TestFailureException {
try {
try {
final BasicStatelessBusinessLocal object = (BasicStatelessBusinessLocal) ejbContext.lookup("stateful/beanReferences/stateless-business-local");
Assert.assertNotNull("The EJB BusinessLocal is null", object);
} catch (final Exception e) {
Assert.fail("Received Exception " + e.getClass() + " : " + e.getMessage());
}
} catch (final AssertionFailedError afe) {
throw new TestFailureException(afe);
}
}
use of org.apache.openejb.test.stateless.BasicStatelessBusinessLocal in project tomee by apache.
the class EncMdbBean method lookupStatelessBusinessLocal.
@Override
public void lookupStatelessBusinessLocal() throws TestFailureException {
try {
try {
final InitialContext ctx = new InitialContext();
Assert.assertNotNull("The InitialContext is null", ctx);
final Object o = ctx.lookup("java:comp/env/stateless/beanReferences/stateless-business-local");
final BasicStatelessBusinessLocal object = (BasicStatelessBusinessLocal) o;
Assert.assertNotNull("The EJB BusinessLocal is null", object);
} catch (final Exception e) {
e.printStackTrace();
Assert.fail("Received Exception " + e.getClass() + " : " + e.getMessage());
}
} catch (final AssertionFailedError afe) {
throw new TestFailureException(afe);
}
}
use of org.apache.openejb.test.stateless.BasicStatelessBusinessLocal in project tomee by apache.
the class ContextLookupMdbPojoBean method lookupStatelessBusinessLocal.
public void lookupStatelessBusinessLocal() throws TestFailureException {
try {
try {
final BasicStatelessBusinessLocal object = (BasicStatelessBusinessLocal) getMessageDrivenContext().lookup("stateless/beanReferences/stateless-business-local");
Assert.assertNotNull("The EJB BusinessLocal is null", object);
} catch (final Exception e) {
Assert.fail("Received Exception " + e.getClass() + " : " + e.getMessage());
}
} catch (final AssertionFailedError afe) {
throw new TestFailureException(afe);
}
}
use of org.apache.openejb.test.stateless.BasicStatelessBusinessLocal in project tomee by apache.
the class ContextLookupMdbBean method lookupStatelessBusinessLocal.
@Override
public void lookupStatelessBusinessLocal() throws TestFailureException {
try {
try {
final BasicStatelessBusinessLocal object = (BasicStatelessBusinessLocal) mdbContext.lookup("stateless/beanReferences/stateless-business-local");
Assert.assertNotNull("The EJB BusinessLocal is null", object);
} catch (final Exception e) {
Assert.fail("Received Exception " + e.getClass() + " : " + e.getMessage());
}
} catch (final AssertionFailedError afe) {
throw new TestFailureException(afe);
}
}
Aggregations