7311: Clean up some warnings

Signed-off-by: Matilda Clerke <matilda.clerke@consensys.net>
pull/7628/head
Matilda Clerke 2 months ago
parent 4b80016587
commit a8d5a9f340
  1. 6
      ethereum/eth/src/test/java/org/hyperledger/besu/ethereum/eth/manager/peertask/PeerTaskExecutorTest.java
  2. 6
      ethereum/eth/src/test/java/org/hyperledger/besu/ethereum/eth/manager/peertask/PeerTaskRequestSenderTest.java

@ -124,8 +124,7 @@ public class PeerTaskExecutorTest {
throws PeerConnection.PeerNotConnected, throws PeerConnection.PeerNotConnected,
ExecutionException, ExecutionException,
InterruptedException, InterruptedException,
TimeoutException, TimeoutException {
InvalidPeerTaskResponseException {
String subprotocol = "subprotocol"; String subprotocol = "subprotocol";
Mockito.when(peerTask.getRequestMessage()).thenReturn(requestMessageData); Mockito.when(peerTask.getRequestMessage()).thenReturn(requestMessageData);
@ -147,8 +146,7 @@ public class PeerTaskExecutorTest {
throws PeerConnection.PeerNotConnected, throws PeerConnection.PeerNotConnected,
ExecutionException, ExecutionException,
InterruptedException, InterruptedException,
TimeoutException, TimeoutException {
InvalidPeerTaskResponseException {
String subprotocol = "subprotocol"; String subprotocol = "subprotocol";
int requestMessageDataCode = 123; int requestMessageDataCode = 123;

@ -21,7 +21,6 @@ import org.hyperledger.besu.ethereum.p2p.rlpx.wire.MessageData;
import java.util.concurrent.CompletableFuture; import java.util.concurrent.CompletableFuture;
import java.util.concurrent.ExecutionException; import java.util.concurrent.ExecutionException;
import java.util.concurrent.TimeoutException;
import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.BeforeEach;
@ -40,10 +39,7 @@ public class PeerTaskRequestSenderTest {
@Test @Test
public void testSendRequest() public void testSendRequest()
throws PeerConnection.PeerNotConnected, throws PeerConnection.PeerNotConnected, ExecutionException, InterruptedException {
ExecutionException,
InterruptedException,
TimeoutException {
String subprotocol = "subprotocol"; String subprotocol = "subprotocol";
MessageData requestMessageData = Mockito.mock(MessageData.class); MessageData requestMessageData = Mockito.mock(MessageData.class);
MessageData responseMessageData = Mockito.mock(MessageData.class); MessageData responseMessageData = Mockito.mock(MessageData.class);

Loading…
Cancel
Save