Skip to content

Commit

Permalink
fix PrivJsonRpcMethodsTest
Browse files Browse the repository at this point in the history
Signed-off-by: Nischal Sharma <[email protected]>
  • Loading branch information
NickSneo committed Apr 24, 2024
1 parent 5229805 commit cefbf82
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
import static org.mockito.Mockito.lenient;
import static org.mockito.Mockito.when;

import org.hyperledger.besu.ethereum.ProtocolContext;
import org.hyperledger.besu.ethereum.api.jsonrpc.internal.filter.FilterManager;
import org.hyperledger.besu.ethereum.api.jsonrpc.internal.methods.JsonRpcMethod;
import org.hyperledger.besu.ethereum.api.query.BlockchainQueries;
Expand All @@ -44,14 +45,20 @@ public class PrivJsonRpcMethodsTest {
@Mock private TransactionPool transactionPool;
@Mock private PrivacyParameters privacyParameters;
@Mock private FilterManager filterManager;
@Mock private ProtocolContext protocolContext;

private PrivJsonRpcMethods privJsonRpcMethods;

@BeforeEach
public void setup() {
privJsonRpcMethods =
new PrivJsonRpcMethods(
blockchainQueries, protocolSchedule, transactionPool, privacyParameters, filterManager);
blockchainQueries,
protocolSchedule,
transactionPool,
privacyParameters,
filterManager,
protocolContext);

lenient().when(privacyParameters.isEnabled()).thenReturn(true);
}
Expand Down

0 comments on commit cefbf82

Please sign in to comment.