use of org.jpos.util.Logger in project jPOS by jpos.
the class BaseChannelTest method testSetLogger1.
@Test
public void testSetLogger1() throws Throwable {
BaseChannel gZIPChannel = new GZIPChannel();
Logger logger = new Logger();
gZIPChannel.setLogger(logger, "testBaseChannelRealm");
gZIPChannel.setLogger(logger, "testBaseChannelRealm");
assertSame("(GZIPChannel) gZIPChannel.logger", logger, ((GZIPChannel) gZIPChannel).logger);
assertEquals("(GZIPChannel) gZIPChannel.realm", "testBaseChannelRealm", ((GZIPChannel) gZIPChannel).realm);
}
use of org.jpos.util.Logger in project jPOS by jpos.
the class ISOBasePackagerTest method testGetRealm.
@Test
public void testGetRealm() {
Logger logger = mock(Logger.class);
iSOBasePackager.setLogger(logger, "testRealm");
assertThat(iSOBasePackager.getRealm(), is("testRealm"));
}
use of org.jpos.util.Logger in project jPOS by jpos.
the class XMLPackagerTest method testGetLogger.
@Test
public void testGetLogger() throws Throwable {
Logger logger = Logger.getLogger("testXMLPackagerName");
xMLPackager.setLogger(logger, "testXMLPackagerRealm");
Logger result = xMLPackager.getLogger();
assertSame("result", logger, result);
}
use of org.jpos.util.Logger in project jPOS by jpos.
the class VErrorParserTest method testGetRealm1.
@Test
public void testGetRealm1() throws Throwable {
VErrorParser vErrorParser = new VErrorParser();
vErrorParser.setLogger(new Logger(), "testVErrorParserRealm");
String result = vErrorParser.getRealm();
assertEquals("result", "testVErrorParserRealm", result);
}
use of org.jpos.util.Logger in project jPOS by jpos.
the class VErrorParserTest method testGetLogger.
@Test
public void testGetLogger() throws Throwable {
VErrorParser vErrorParser = new VErrorParser();
Logger logger = new Logger();
vErrorParser.setLogger(logger, "testVErrorParserRealm");
Logger result = vErrorParser.getLogger();
assertSame("result", logger, result);
}
Aggregations