@Test public void testInvalidEvent() { Take take = new Take(1L, 1L); Event returnEvent = EventUtils.getEventFromTransactionEvent(take); Assert.assertNull(returnEvent); }
public static Event getEventFromTransactionEvent(TransactionEventRecord transactionEventRecord) { if (transactionEventRecord instanceof Put) { return ((Put)transactionEventRecord).getEvent(); } return null; }
EventUtils { public static Event getEventFromTransactionEvent(TransactionEventRecord transactionEventRecord) { if (transactionEventRecord instanceof Put) { return ((Put)transactionEventRecord).getEvent(); } return null; } }
EventUtils { public static Event getEventFromTransactionEvent(TransactionEventRecord transactionEventRecord) { if (transactionEventRecord instanceof Put) { return ((Put)transactionEventRecord).getEvent(); } return null; }  }
EventUtils { public static Event getEventFromTransactionEvent(TransactionEventRecord transactionEventRecord) { if (transactionEventRecord instanceof Put) { return ((Put)transactionEventRecord).getEvent(); } return null; }  static Event getEventFromTransactionEvent(TransactionEventRecord transactionEventRecord); }
EventUtils { public static Event getEventFromTransactionEvent(TransactionEventRecord transactionEventRecord) { if (transactionEventRecord instanceof Put) { return ((Put)transactionEventRecord).getEvent(); } return null; }  static Event getEventFromTransactionEvent(TransactionEventRecord transactionEventRecord);  }