Search in sources :

Example 1 with Connector

use of org.jpos.iso.Connector in project jPOS by jpos.

the class QMUXTest method testRemoveISORequestListener1.

@Test
public void testRemoveISORequestListener1() throws Throwable {
    QMUX qMUX = new QMUX();
    ISORequestListener l = new Connector();
    qMUX.addISORequestListener(l);
    boolean result = qMUX.removeISORequestListener(l);
    assertEquals("qMUX.listeners.size()", 0, qMUX.listeners.size());
    assertFalse("qMUX.listeners.contains(l)", qMUX.listeners.contains(l));
    assertTrue("result", result);
}
Also used : Connector(org.jpos.iso.Connector) ISORequestListener(org.jpos.iso.ISORequestListener) Test(org.junit.Test)

Example 2 with Connector

use of org.jpos.iso.Connector in project jPOS by jpos.

the class QMUXTest method testRemoveISORequestListener.

@Test
public void testRemoveISORequestListener() throws Throwable {
    QMUX qMUX = new QMUX();
    boolean result = qMUX.removeISORequestListener(new Connector());
    assertFalse("result", result);
    assertEquals("qMUX.listeners.size()", 0, qMUX.listeners.size());
}
Also used : Connector(org.jpos.iso.Connector) Test(org.junit.Test)

Aggregations

Connector (org.jpos.iso.Connector)2 Test (org.junit.Test)2 ISORequestListener (org.jpos.iso.ISORequestListener)1