use of org.apache.openejb.test.TestFailureException in project tomee by apache.
the class SetterInjectionMdbBean method lookupByteEntry.
@Override
public void lookupByteEntry() throws TestFailureException {
try {
final Byte expected = (byte) 1;
Assert.assertNotNull("The Byte looked up is null", byyteField);
Assert.assertEquals(expected, byyteField);
} catch (final AssertionFailedError afe) {
throw new TestFailureException(afe);
}
}
use of org.apache.openejb.test.TestFailureException in project tomee by apache.
the class SetterInjectionMdbBean method lookupJMSConnectionFactory.
@Override
public void lookupJMSConnectionFactory() throws TestFailureException {
try {
try {
testJmsConnection(coonnectionFactory.createConnection());
testJmsConnection(queueCoonnectionFactory.createConnection());
testJmsConnection(topicCoonnectionFactory.createConnection());
} 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.TestFailureException in project tomee by apache.
the class SetterInjectionMdbBean method lookupBooleanEntry.
@Override
public void lookupBooleanEntry() throws TestFailureException {
try {
final Boolean expected = true;
Assert.assertNotNull("The Boolean looked up is null", boooleanField);
Assert.assertEquals(expected, boooleanField);
} catch (final AssertionFailedError afe) {
throw new TestFailureException(afe);
}
}
use of org.apache.openejb.test.TestFailureException in project tomee by apache.
the class AnnotatedFieldInjectionSingletonBean method lookupBooleanEntry.
public void lookupBooleanEntry() throws TestFailureException {
try {
final Boolean expected = Boolean.TRUE;
Assert.assertNotNull("The Boolean looked up is null", booolean);
Assert.assertEquals(expected, booolean);
} catch (final AssertionFailedError afe) {
throw new TestFailureException(afe);
}
}
use of org.apache.openejb.test.TestFailureException in project tomee by apache.
the class AnnotatedFieldInjectionSingletonBean method lookupStringEntry.
public void lookupStringEntry() throws TestFailureException {
try {
final String expected = new String("1");
Assert.assertNotNull("The String looked up is null", striing);
Assert.assertEquals(expected, striing);
} catch (final AssertionFailedError afe) {
throw new TestFailureException(afe);
}
}
Aggregations