Skip to content

Commit 144ce16

Browse files
committed
Suppress unchecked warnings for mocks in CommandHelperTest
1 parent 0842e32 commit 144ce16

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

driver-core/src/test/unit/com/mongodb/internal/connection/CommandHelperTest.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ public class CommandHelperTest {
5252
new ServerId(new ClusterId("cluster"), new ServerAddress()));
5353

5454
@Test
55+
@SuppressWarnings("unchecked")
5556
void testExecuteCommand() {
5657
InternalConnection internalConnection = mock(InternalConnection.class);
5758
OperationContext operationContext = createOperationContext();
@@ -67,6 +68,7 @@ void testExecuteCommand() {
6768
}
6869

6970
@Test
71+
@SuppressWarnings("unchecked")
7072
void testExecuteCommandWithoutCheckingForFailure() {
7173
InternalConnection internalConnection = mock(InternalConnection.class);
7274
OperationContext operationContext = createOperationContext();
@@ -84,6 +86,7 @@ void testExecuteCommandWithoutCheckingForFailure() {
8486

8587

8688
@Test
89+
@SuppressWarnings("unchecked")
8790
void testExecuteCommandAsyncUsesTheOperationContext() {
8891
InternalConnection internalConnection = mock(InternalConnection.class);
8992
OperationContext operationContext = createOperationContext();

0 commit comments

Comments
 (0)