public void itIgnoresSequenceWhenOneOrBothTxactionsHaveNullSequences() throws Exception {
Txaction txactionWithNullSequenceNumber = new Txaction(euroSavings, decimal("-34.22"), jun15th);
txactionWithNullSequenceNumber.setSequence(null);
inject(Txaction.class, txactionWithNullSequenceNumber, "createdAt", jun17th);
assertEquals(-1, txaction.compareTo(txactionWithNullSequenceNumber));
assertEquals(1, txactionWithNullSequenceNumber.compareTo(txaction));
}
@Test
public void itIgnoresCreatedAtDatesWhenOneOrBothTxactionsHaveNullCreatedAtDates() throws Exception {
Txaction txactionWithNullCreatedAt = new Txaction(euroSavings, decimal("-34.22"), jun15th);