LevelLowerAcceptCondition extends AbstractAcceptContidion implements HasIcon { @Override public boolean accept(LogData data) { return data.getLevel() != null && data.getLevel().intValue() < levelIntValue; } LevelLowerAcceptCondition(Level level); @Override boolean accept(LogData data); @Override Icon getIcon();  }
@Test public void testAccept() { LogData ld = new LogData(); ld.setLevel(Level.INFO); assertFalse(new LevelLowerAcceptCondition(Level.FINEST).accept(ld)); assertFalse(new LevelLowerAcceptCondition(Level.FINER).accept(ld)); assertFalse(new LevelLowerAcceptCondition(Level.FINE).accept(ld)); assertFalse(new LevelLowerAcceptCondition(Level.CONFIG).accept(ld)); assertFalse(new LevelLowerAcceptCondition(Level.INFO).accept(ld)); assertTrue(new LevelLowerAcceptCondition(Level.WARNING).accept(ld)); assertTrue(new LevelLowerAcceptCondition(Level.SEVERE).accept(ld)); }