use of ch.qos.logback.core.Appender 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.core.Appender 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);
}
use of ch.qos.logback.core.Appender in project qpid-broker-j by apache.
the class JDBCBrokerLoggerImplTest method detachAppenderInstanceOnDelete.
@Test
public void detachAppenderInstanceOnDelete() {
_logger.create();
_logger.delete();
final Appender appender = ROOT_LOGGER.getAppender(getTestName());
assertNull(appender);
}
use of ch.qos.logback.core.Appender in project qpid-broker-j by apache.
the class JDBCBrokerLoggerImplTest method closeAndReopenLogger.
@Test
public void closeAndReopenLogger() {
_logger.create();
_logger.close();
final Appender appender = ROOT_LOGGER.getAppender(getTestName());
assertNotNull(appender);
_logger.open();
assertSame(appender, ROOT_LOGGER.getAppender(getTestName()));
}
use of ch.qos.logback.core.Appender 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);
}
Aggregations