use of org.apache.qpid.server.logging.logback.BrokerFileLogger in project qpid-broker-j by apache.
the class BrokerFileLoggerTest method createLoggerInErroredState.
private BrokerFileLogger createLoggerInErroredState() {
Map<String, Object> attributes = new HashMap<>();
attributes.put(BrokerLogger.NAME, getTestName());
attributes.put(ConfiguredObject.TYPE, BrokerFileLogger.TYPE);
attributes.put(BrokerFileLogger.FILE_NAME, _logFile.getPath());
attributes.put(BrokerFileLogger.MAX_FILE_SIZE, "invalid");
BrokerFileLogger logger = new BrokerFileLoggerImpl(attributes, _broker);
logger.open();
assertEquals("Unexpected state", State.ERRORED, logger.getState());
return logger;
}
Aggregations