@Test void onTransaction() { Transaction transaction = new Transaction(); transaction.setConsensusNs(1L); transaction.setNodeAccountId(ENTITY_ID); transaction.setPayerAccountId(ENTITY_ID); transaction.setResult(1); transaction.setType(1); transaction.setValidStartNs(1L); repositoryEntityListener.onTransaction(transaction); assertThat(transactionRepository.findAll()).contains(transaction); }
@Override public void onTransaction(Transaction transaction) throws ImporterException { transactionRepository.save(transaction); }
RepositoryEntityListener implements EntityListener { @Override public void onTransaction(Transaction transaction) throws ImporterException { transactionRepository.save(transaction); } }
RepositoryEntityListener implements EntityListener { @Override public void onTransaction(Transaction transaction) throws ImporterException { transactionRepository.save(transaction); }  }
RepositoryEntityListener implements EntityListener { @Override public void onTransaction(Transaction transaction) throws ImporterException { transactionRepository.save(transaction); }  @Override boolean isEnabled(); @Override void onContractResult(ContractResult contractResult); @Override void onCryptoTransfer(CryptoTransfer cryptoTransfer); @Override void onEntityId(EntityId entityId); @Override void onFileData(FileData fileData); @Override void onLiveHash(LiveHash liveHash); @Override void onNonFeeTransfer(NonFeeTransfer nonFeeTransfer); @Override void onToken(Token token); @Override void onTokenAccount(TokenAccount tokenAccount); @Override void onTokenTransfer(TokenTransfer tokenTransfer); @Override void onTopicMessage(TopicMessage topicMessage); @Override void onTransaction(Transaction transaction); }
RepositoryEntityListener implements EntityListener { @Override public void onTransaction(Transaction transaction) throws ImporterException { transactionRepository.save(transaction); }  @Override boolean isEnabled(); @Override void onContractResult(ContractResult contractResult); @Override void onCryptoTransfer(CryptoTransfer cryptoTransfer); @Override void onEntityId(EntityId entityId); @Override void onFileData(FileData fileData); @Override void onLiveHash(LiveHash liveHash); @Override void onNonFeeTransfer(NonFeeTransfer nonFeeTransfer); @Override void onToken(Token token); @Override void onTokenAccount(TokenAccount tokenAccount); @Override void onTokenTransfer(TokenTransfer tokenTransfer); @Override void onTopicMessage(TopicMessage topicMessage); @Override void onTransaction(Transaction transaction);  }