@Test public void testByNullAndThrown() { LogRecord r1 = new LogRecord(Level.INFO, Level.INFO.toString()); LogRecord r2 = new LogRecord(Level.INFO, Level.INFO.toString()); r1.setSequenceNumber(r2.getSequenceNumber()); r1.setMillis(r2.getMillis()); assertEquals(r1.getLevel(), r2.getLevel()); assertEquals(r1.getSequenceNumber(), r2.getSequenceNumber()); assertEquals(r1.getMillis(), r2.getMillis()); assertNull(r1.getThrown()); r2.setThrown(new Error()); assertRecordLessThan(r1, r2); assertNull(r1.getThrown()); r2.setThrown(new RuntimeException()); assertRecordLessThan(r1, r2); assertNull(r1.getThrown()); r2.setThrown(new Exception()); assertRecordLessThan(r1, r2); }
private static String toString(final Object o1, final Object o2) { return o1 + ", " + o2; }
SeverityComparator implements Comparator<LogRecord>, Serializable { private static String toString(final Object o1, final Object o2) { return o1 + ", " + o2; } }
SeverityComparator implements Comparator<LogRecord>, Serializable { private static String toString(final Object o1, final Object o2) { return o1 + ", " + o2; }  }
SeverityComparator implements Comparator<LogRecord>, Serializable { private static String toString(final Object o1, final Object o2) { return o1 + ", " + o2; }  Throwable apply(final Throwable chain); final int applyThenCompare(Throwable tc1, Throwable tc2); int compareThrowable(final Throwable t1, final Throwable t2); int compare(final LogRecord o1, final LogRecord o2); @Override boolean equals(final Object o); @Override int hashCode(); boolean isNormal(final Throwable t); }
SeverityComparator implements Comparator<LogRecord>, Serializable { private static String toString(final Object o1, final Object o2) { return o1 + ", " + o2; }  Throwable apply(final Throwable chain); final int applyThenCompare(Throwable tc1, Throwable tc2); int compareThrowable(final Throwable t1, final Throwable t2); int compare(final LogRecord o1, final LogRecord o2); @Override boolean equals(final Object o); @Override int hashCode(); boolean isNormal(final Throwable t);  }