- Sort Score
- Result 10 results
- Languages All
Results 41 - 50 of 725 for When (0.02 sec)
-
src/test/java/jcifs/smb/DfsImplTest.java
// Set up mock behaviors when(mockContext.getConfig()).thenReturn(mockConfig); when(mockContext.getCredentials()).thenReturn(mockCredentials); when(mockContext.getTransportPool()).thenReturn(mockTransportPool); when(mockConfig.getDfsTtl()).thenReturn(300L); // Mock transport to throw IOException - simulating connection failureRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.5K bytes - Viewed (0) -
src/test/java/jcifs/http/NetworkExplorerTest.java
lenient().when(request.getSession()).thenReturn(session); lenient().when(request.getSession(false)).thenReturn(session); lenient().when(request.getSession(true)).thenReturn(session); // Setup default session attribute behavior lenient().when(session.getAttribute(anyString())).thenReturn(null); // Setup SmbFile mock lenient().when(smbFile.getLocator()).thenReturn(locator);
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 21 04:51:33 UTC 2025 - 21.2K bytes - Viewed (0) -
src/test/java/jcifs/smb/DirFileEntryEnumIterator1Test.java
lenient().when(tree.acquire()).thenReturn(tree); lenient().when(tree.getConfig()).thenReturn(config); lenient().when(config.getListCount()).thenReturn(10); lenient().when(config.getListSize()).thenReturn(4096); lenient().when(parent.getLocator()).thenReturn(locator); lenient().when(locator.getUNCPath()).thenReturn("\\\\SERVER\\Share\\dir\\"); // ends with \\
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 12.7K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/SMB1SigningDigestTest.java
when(readResponse.getFlags2()).thenReturn(SmbConstants.FLAGS2_SECURITY_SIGNATURES); when(readResponse.getSignSeq()).thenReturn(10); when(readResponse.getCommand()).thenReturn((int) ServerMessageBlock.SMB_COM_READ_ANDX); when(readResponse.getLength()).thenReturn(100); when(readResponse.getDataLength()).thenReturn(50); when(readResponse.getData()).thenReturn(readData);
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 18.1K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/tree/Smb2TreeConnectRequestTest.java
byte[] buffer = new byte[256]; // When req.encode(buffer, 0); // Then assertEquals(0, SMBUtil.readInt2(buffer, Smb2Constants.SMB2_HEADER_LENGTH + 6)); // Path length should be 0 } @Test @DisplayName("Should handle null path") void testNullPath() { // When creating with null path
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 18.6K bytes - Viewed (0) -
src/test/java/jcifs/dcerpc/msrpc/SamrDomainHandleTest.java
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 8.9K bytes - Viewed (0) -
src/test/java/jcifs/NameServiceClientTest.java
import static org.junit.jupiter.api.Assertions.assertThrows; import static org.mockito.Mockito.mock; import static org.mockito.Mockito.times; import static org.mockito.Mockito.verify; import static org.mockito.Mockito.when; import java.net.InetAddress; import java.net.UnknownHostException; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; import org.mockito.Mock; import org.mockito.MockitoAnnotations;
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 15.4K bytes - Viewed (0) -
src/test/java/jcifs/pac/kerberos/KerberosRelevantAuthDataTest.java
*/ @Test void testConstructor_EmptyToken() { // 1. GIVEN byte[] emptyToken = new byte[0]; Map<Integer, KerberosKey> keys = new HashMap<>(); // 2. WHEN & 3. THEN // When ASN1InputStream.readObject() returns null due to empty input, // ASN1Util.as() throws NullPointerException (not wrapped) Exception exception = assertThrows(Exception.class, () -> {Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 9K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/com/SmbComRenameTest.java
int dstIndex = 0; // When int result = smbComRename.writeBytesWireFormat(dst, dstIndex); // Then assertTrue(result > 0); assertEquals((byte) 0x04, dst[0]); // First buffer format byte // Find the second buffer format byte by searching for it // In Unicode mode, the old filename is written as Unicode, then 0x04, then an alignment byteRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 12.5K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbTransportImplTest.java
@BeforeEach void setUp() throws Exception { when(ctx.getConfig()).thenReturn(cfg); when(cfg.isSigningEnforced()).thenReturn(false); when(cfg.getSessionTimeout()).thenReturn(30_000); when(cfg.getResponseTimeout()).thenReturn(5_000); when(address.getHostAddress()).thenReturn("127.0.0.1"); when(address.getHostName()).thenReturn("localhost");Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 17.6K bytes - Viewed (0)