We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 87eb1dd commit ee9f83fCopy full SHA for ee9f83f
core/src/test/java/tech/ydb/core/impl/pool/EndpointPoolTest.java
@@ -37,11 +37,11 @@ public class EndpointPoolTest {
37
38
@Before
39
public void setUp() throws IOException {
40
+ Mockito.when(socketFactory.createSocket()).thenReturn(socket);
41
+ Mockito.doNothing().when(socket).connect(Mockito.any(SocketAddress.class));
42
mocks = MockitoAnnotations.openMocks(this);
43
threadLocalStaticMock.when(ThreadLocalRandom::current).thenReturn(random);
44
socketFactoryStaticMock.when(SocketFactory::getDefault).thenReturn(socketFactory);
- Mockito.when(socketFactory.createSocket()).thenReturn(socket);
- Mockito.doNothing().when(socket).connect(Mockito.any(SocketAddress.class));
45
}
46
47
@After
0 commit comments