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 55b42e8
Showing 1 changed file with 9 additions and 9 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 @@ -520,7 +520,7 @@ void whenExecuteEstimateGasWithDataParameter_callExecutorWithData() {
null,
reversibleTransactionExecutor,
retriever,
null,
mock(RepositoryLocator.class),
null,
null,
new BridgeSupportFactory(
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 @@ -565,7 +565,7 @@ void whenExecuteEstimateGasWithInputParameter_callExecutorWithInput() {
null,
reversibleTransactionExecutor,
retriever,
null,
mock(RepositoryLocator.class),
null,
null,
new BridgeSupportFactory(
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 @@ -611,7 +611,7 @@ void whenExecuteEstimateGasWithInputAndDataParameters_callExecutorWithInput() {
null,
reversibleTransactionExecutor,
retriever,
null,
mock(RepositoryLocator.class),
null,
null,
new BridgeSupportFactory(
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 55b42e8

Please sign in to comment.