Search in sources :

Example 6 with BSHTransactionParticipant

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);
}
Also used : BSHTransactionParticipant(org.jpos.transaction.participant.BSHTransactionParticipant) Test(org.junit.Test)

Example 7 with BSHTransactionParticipant

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());
    }
}
Also used : BSHTransactionParticipant(org.jpos.transaction.participant.BSHTransactionParticipant) ConfigurationException(org.jpos.core.ConfigurationException) Test(org.junit.Test)

Aggregations

BSHTransactionParticipant (org.jpos.transaction.participant.BSHTransactionParticipant)7 Test (org.junit.Test)7 ArrayList (java.util.ArrayList)1 Element (org.jdom2.Element)1 ConfigurationException (org.jpos.core.ConfigurationException)1 CheckPoint (org.jpos.transaction.participant.CheckPoint)1 LogEvent (org.jpos.util.LogEvent)1