use of org.jpos.util.Logger in project jPOS by jpos.
the class ISOBasePackagerTest method testGetLogger.
@Test
public void testGetLogger() {
Logger logger = mock(Logger.class);
iSOBasePackager.setLogger(logger, "testRealm");
assertThat(iSOBasePackager.getLogger(), is(logger));
}
use of org.jpos.util.Logger in project jPOS by jpos.
the class SslChannelIntegrationTest method setUp.
@Before
public void setUp() throws Exception {
logger = new Logger();
logger.addListener(new SimpleLogListener());
}
use of org.jpos.util.Logger in project jPOS by jpos.
the class ChannelPoolTest method testSetLogger.
@Test
public void testSetLogger() throws Throwable {
ChannelPool channelPool = new ChannelPool();
Logger logger = new Logger();
channelPool.setLogger(logger, "testChannelPoolRealm");
assertSame("channelPool.logger", logger, channelPool.logger);
assertEquals("channelPool.realm", "testChannelPoolRealm", channelPool.realm);
}
use of org.jpos.util.Logger in project jPOS by jpos.
the class LoopbackChannelTest method testGetLogger.
@Test
public void testGetLogger() throws Throwable {
LoopbackChannel loopbackChannel = new LoopbackChannel();
Logger logger = new Logger();
loopbackChannel.setLogger(logger, "testLoopbackChannelRealm");
Logger result = loopbackChannel.getLogger();
assertSame("result", logger, result);
}
use of org.jpos.util.Logger in project jPOS by jpos.
the class BaseSMAdapterTest method testGetRealm.
@Test
public void testGetRealm() throws Throwable {
BaseSMAdapter jCESecurityModule = new BaseSMAdapter();
jCESecurityModule.setLogger(new Logger(), "testBaseSMAdapterRealm");
String result = jCESecurityModule.getRealm();
assertEquals("result", "testBaseSMAdapterRealm", result);
}
Aggregations