use of org.apache.openejb.test.TestFailureException in project tomee by apache.
the class FieldInjectionMdbBean method lookupByteEntry.
@Override
public void lookupByteEntry() throws TestFailureException {
try {
final Byte expected = (byte) 1;
Assert.assertNotNull("The Byte looked up is null", byyte);
Assert.assertEquals(expected, byyte);
} catch (final AssertionFailedError afe) {
throw new TestFailureException(afe);
}
}
use of org.apache.openejb.test.TestFailureException in project tomee by apache.
the class FieldInjectionMdbBean 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 lookupDoubleEntry.
@Override
public void lookupDoubleEntry() throws TestFailureException {
try {
final Double expected = 1.0D;
Assert.assertNotNull("The Double looked up is null", dooubleField);
Assert.assertEquals(expected, dooubleField);
} catch (final AssertionFailedError afe) {
throw new TestFailureException(afe);
}
}
use of org.apache.openejb.test.TestFailureException in project tomee by apache.
the class SetterInjectionMdbBean method lookupCharacterEntry.
@Override
public void lookupCharacterEntry() throws TestFailureException {
try {
final Character expected = 'D';
Assert.assertNotNull("The Character looked up is null", chaaracterField);
Assert.assertEquals(expected, chaaracterField);
} catch (final AssertionFailedError afe) {
throw new TestFailureException(afe);
}
}
use of org.apache.openejb.test.TestFailureException in project tomee by apache.
the class SetterInjectionMdbBean method lookupFloatEntry.
@Override
public void lookupFloatEntry() throws TestFailureException {
try {
final Float expected = 1.0F;
Assert.assertNotNull("The Float looked up is null", flooatField);
Assert.assertEquals(expected, flooatField);
} catch (final AssertionFailedError afe) {
throw new TestFailureException(afe);
}
}
Aggregations