@Test public void testByThrownAndInterruptedSub() { LogRecord r1 = new LogRecord(Level.INFO, Level.INFO.toString()); LogRecord r2 = new LogRecord(Level.INFO, Level.INFO.toString()); swapSeq(r1, r2); assertTrue(r1.getSequenceNumber() > r2.getSequenceNumber()); r1.setThrown(headSubIeChain(null)); r2.setThrown(new Error()); assertRecordLessThan(r1, r2); assertTrue(r1.getSequenceNumber() > r2.getSequenceNumber()); r1.setThrown(headSubIeChain(null)); r2.setThrown(new RuntimeException()); assertRecordLessThan(r1, r2); assertTrue(r1.getSequenceNumber() > r2.getSequenceNumber()); r1.setThrown(headSubIeChain(null)); r2.setThrown(new Exception()); assertRecordLessThan(r1, r2); assertTrue(r1.getSequenceNumber() > r2.getSequenceNumber()); r1.setThrown(headSubIeChain(new Error())); r2.setThrown(new Error()); assertRecordLessThan(r1, r2); assertTrue(r1.getSequenceNumber() > r2.getSequenceNumber()); r1.setThrown(headSubIeChain(new RuntimeException())); r2.setThrown(new RuntimeException()); assertRecordLessThan(r1, r2); assertTrue(r1.getSequenceNumber() > r2.getSequenceNumber()); r1.setThrown(headSubIeChain(new Exception())); 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);  }