use of org.jpos.transaction.participant.BSHTransactionParticipant in project jPOS by jpos.
the class SimpleLogSourceTest method testGetRealm1.
@Test
public void testGetRealm1() throws Throwable {
String result = new BSHTransactionParticipant().getRealm();
assertNull("result", result);
}
use of org.jpos.transaction.participant.BSHTransactionParticipant in project jPOS by jpos.
the class QFactory2Test method testSetConfigurationThrowsConfigurationException.
@Test
public void testSetConfigurationThrowsConfigurationException() throws Throwable {
String[] args = new String[0];
try {
new QFactory(null, new Q2(args)).setConfiguration(new BSHTransactionParticipant(), null);
fail("Expected ConfigurationException to be thrown");
} catch (ConfigurationException ex) {
assertEquals("ex.getMessage()", "org.jpos.core.ConfigurationException (java.lang.NullPointerException)", ex.getMessage());
assertNull("ex.getNested().getMessage()", ex.getNested().getMessage());
}
}
Aggregations