use of org.eclipse.equinox.log.LogFilter in project rt.equinox.framework by eclipse.
the class ExtendedLogReaderServiceTest method testBadFilter.
public void testBadFilter() throws Exception {
TestListener listener = new TestListener();
reader.addLogListener(listener, new LogFilter() {
public boolean isLoggable(Bundle b, String loggerName, int logLevel) {
throw new RuntimeException("Expected error for testBadFilter.");
}
});
if (log.isLoggable(LogService.LOG_INFO))
fail();
}
Aggregations