@Test public void returnsTransactionReceiptWhenItIsAvailableInstantly() throws Exception { TransactionReceipt transactionReceipt = new TransactionReceipt(); doReturn(requestReturning(response(transactionReceipt))) .when(web3j).ethGetTransactionReceipt(TRANSACTION_HASH); TransactionReceipt receipt = processor.waitForTransactionReceipt(TRANSACTION_HASH); assertThat(receipt, sameInstance(transactionReceipt)); }
@Override public TransactionReceipt waitForTransactionReceipt( String transactionHash) throws IOException, TransactionException { return getTransactionReceipt(transactionHash, sleepDuration, attempts); }
PollingTransactionReceiptProcessor extends TransactionReceiptProcessor { @Override public TransactionReceipt waitForTransactionReceipt( String transactionHash) throws IOException, TransactionException { return getTransactionReceipt(transactionHash, sleepDuration, attempts); } }
PollingTransactionReceiptProcessor extends TransactionReceiptProcessor { @Override public TransactionReceipt waitForTransactionReceipt( String transactionHash) throws IOException, TransactionException { return getTransactionReceipt(transactionHash, sleepDuration, attempts); } PollingTransactionReceiptProcessor(Web3j web3j, long sleepDuration, int attempts); }
PollingTransactionReceiptProcessor extends TransactionReceiptProcessor { @Override public TransactionReceipt waitForTransactionReceipt( String transactionHash) throws IOException, TransactionException { return getTransactionReceipt(transactionHash, sleepDuration, attempts); } PollingTransactionReceiptProcessor(Web3j web3j, long sleepDuration, int attempts); @Override TransactionReceipt waitForTransactionReceipt(
            String transactionHash); }
PollingTransactionReceiptProcessor extends TransactionReceiptProcessor { @Override public TransactionReceipt waitForTransactionReceipt( String transactionHash) throws IOException, TransactionException { return getTransactionReceipt(transactionHash, sleepDuration, attempts); } PollingTransactionReceiptProcessor(Web3j web3j, long sleepDuration, int attempts); @Override TransactionReceipt waitForTransactionReceipt(
            String transactionHash);  }