Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for doReturn (0.48 sec)

  1. src/test/java/jcifs/smb/SmbTransportPoolImplTest.java

            when(trans1.acquire()).thenReturn(trans1);
            doNothing().when(trans1).close();
    
            // Return mocked transports
            doReturn(trans1).when(poolSpy).getSmbTransport(eq(ctx), eq(addr1), anyInt(), anyBoolean(), anyBoolean());
            doReturn(trans2).when(poolSpy).getSmbTransport(eq(ctx), eq(addr2), anyInt(), anyBoolean(), anyBoolean());
    
            // When: Get transport by name
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 19.2K bytes
    - Viewed (0)
Back to top