Skip to content

Commit

Permalink
Fixed tests after the merge from master
Browse files Browse the repository at this point in the history
  • Loading branch information
Vovchyk committed Sep 22, 2023
1 parent 66549ed commit 2ad2c49
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -510,7 +510,7 @@ void whenExecuteEstimateGasWithDataParameter_callExecutorWithData() {
.thenReturn(executorResult);

ReversibleTransactionExecutor reversibleTransactionExecutor = mock(ReversibleTransactionExecutor.class);
when(reversibleTransactionExecutor.estimateGas(eq(block), any(), any(), any(), any(), any(), any(), any()))
when(reversibleTransactionExecutor.estimateGas(eq(block), any(), any(), any(), any(), any(), any(), any(), any()))
.thenReturn(transactionExecutor);

EthModule eth = new EthModule(
Expand All @@ -534,7 +534,7 @@ void whenExecuteEstimateGasWithDataParameter_callExecutorWithData() {

ArgumentCaptor<byte[]> dataCaptor = ArgumentCaptor.forClass(byte[].class);
verify(reversibleTransactionExecutor, times(1))
.estimateGas(eq(block), any(), any(), any(), any(), any(), dataCaptor.capture(), any());
.estimateGas(eq(block), any(), any(), any(), any(), any(), dataCaptor.capture(), any(), any());
assertArrayEquals(HexUtils.strHexOrStrNumberToByteArray(args.getData()), dataCaptor.getValue());
}

Expand All @@ -555,7 +555,7 @@ void whenExecuteEstimateGasWithInputParameter_callExecutorWithInput() {
.thenReturn(executorResult);

ReversibleTransactionExecutor reversibleTransactionExecutor = mock(ReversibleTransactionExecutor.class);
when(reversibleTransactionExecutor.estimateGas(eq(block), any(), any(), any(), any(), any(), any(), any()))
when(reversibleTransactionExecutor.estimateGas(eq(block), any(), any(), any(), any(), any(), any(), any(), any()))
.thenReturn(transactionExecutor);

EthModule eth = new EthModule(
Expand All @@ -579,7 +579,7 @@ void whenExecuteEstimateGasWithInputParameter_callExecutorWithInput() {

ArgumentCaptor<byte[]> dataCaptor = ArgumentCaptor.forClass(byte[].class);
verify(reversibleTransactionExecutor, times(1))
.estimateGas(eq(block), any(), any(), any(), any(), any(), dataCaptor.capture(), any());
.estimateGas(eq(block), any(), any(), any(), any(), any(), dataCaptor.capture(), any(), any());
assertArrayEquals(HexUtils.strHexOrStrNumberToByteArray(args.getInput()), dataCaptor.getValue());
}

Expand All @@ -601,7 +601,7 @@ void whenExecuteEstimateGasWithInputAndDataParameters_callExecutorWithInput() {
.thenReturn(executorResult);

ReversibleTransactionExecutor reversibleTransactionExecutor = mock(ReversibleTransactionExecutor.class);
when(reversibleTransactionExecutor.estimateGas(eq(block), any(), any(), any(), any(), any(), any(), any()))
when(reversibleTransactionExecutor.estimateGas(eq(block), any(), any(), any(), any(), any(), any(), any(), any()))
.thenReturn(transactionExecutor);

EthModule eth = new EthModule(
Expand All @@ -625,7 +625,7 @@ void whenExecuteEstimateGasWithInputAndDataParameters_callExecutorWithInput() {

ArgumentCaptor<byte[]> dataCaptor = ArgumentCaptor.forClass(byte[].class);
verify(reversibleTransactionExecutor, times(1))
.estimateGas(eq(block), any(), any(), any(), any(), any(), dataCaptor.capture(), any());
.estimateGas(eq(block), any(), any(), any(), any(), any(), dataCaptor.capture(), any(), any());
assertArrayEquals(HexUtils.strHexOrStrNumberToByteArray(args.getInput()), dataCaptor.getValue());
}

Expand Down

0 comments on commit 2ad2c49

Please sign in to comment.