use of ch.qos.logback.classic.db.DBAppender in project qpid-broker-j by apache.
the class JDBCVirtualHostLoggerImplTest method createAppenderOnCreate.
@Test
public void createAppenderOnCreate() {
_logger.create();
final Appender appender = ROOT_LOGGER.getAppender(getTestName());
assertTrue(appender instanceof DBAppender);
}
use of ch.qos.logback.classic.db.DBAppender in project qpid-broker-j by apache.
the class JDBCVirtualHostLoggerImplTest method createAppenderOnOpen.
@Test
public void createAppenderOnOpen() {
_logger.open();
final Appender appender = ROOT_LOGGER.getAppender(getTestName());
assertTrue(appender instanceof DBAppender);
}
use of ch.qos.logback.classic.db.DBAppender in project qpid-broker-j by apache.
the class JDBCLoggerHelperTest method createAppenderInstance.
@Test
public void createAppenderInstance() {
final LoggerContext context = ROOT_LOGGER.getLoggerContext();
final Appender<ILoggingEvent> appender = _jdbcLoggerHelper.createAppenderInstance(context, _broker, _jdbcSettings);
assertTrue(appender instanceof DBAppender);
assertTrue(appender.isStarted());
assertEquals(context, appender.getContext());
assertTrue(((DBAppender) appender).getConnectionSource() instanceof JDBCSettingsDrivenConnectionSource);
}
use of ch.qos.logback.classic.db.DBAppender in project qpid-broker-j by apache.
the class JDBCBrokerLoggerImplTest method createAppenderOnOpen.
@Test
public void createAppenderOnOpen() {
_logger.open();
final Appender appender = ROOT_LOGGER.getAppender(getTestName());
assertTrue(appender instanceof DBAppender);
}
use of ch.qos.logback.classic.db.DBAppender in project qpid-broker-j by apache.
the class JDBCBrokerLoggerImplTest method createAppenderOnCreate.
@Test
public void createAppenderOnCreate() {
_logger.create();
final Appender appender = ROOT_LOGGER.getAppender(getTestName());
assertTrue(appender instanceof DBAppender);
}
Aggregations