- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 945 for Chen (0.02 sec)
-
src/test/java/jcifs/internal/CommonServerMessageBlockResponseTest.java
when(response1.getNextResponse()).thenReturn(response2); when(response2.getNextResponse()).thenReturn(response3); when(response3.getNextResponse()).thenReturn(null); when(response1.isAsync()).thenReturn(false); when(response2.isAsync()).thenReturn(true); when(response3.isAsync()).thenReturn(false); // When - test chain navigation and properties
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 20.3K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/nego/Smb2NegotiateResponseTest.java
// Default configuration when(mockConfig.isDfsDisabled()).thenReturn(false); when(mockConfig.isEncryptionEnabled()).thenReturn(true); when(mockConfig.getMinimumVersion()).thenReturn(DialectVersion.SMB202); when(mockConfig.getMaximumVersion()).thenReturn(DialectVersion.SMB311); when(mockConfig.getTransactionBufferSize()).thenReturn(65536); when(mockConfig.getReceiveBufferSize()).thenReturn(65536);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 32.5K bytes - Viewed (0) -
src/test/java/jcifs/internal/CommonServerMessageBlockTest.java
doNothing().when(messageBlock).setMid(mid); doNothing().when(messageBlock).setCommand(command); doNothing().when(messageBlock).setUid(uid); doNothing().when(messageBlock).setSessionId(sessionId); doNothing().when(messageBlock).setExtendedSecurity(true); doNothing().when(messageBlock).setDigest(digest); doNothing().when(messageBlock).setResponse(response);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 15.7K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/lock/Smb2LockResponseTest.java
// When int result = response.writeBytesWireFormat(dst, 0); // Then assertEquals(0, result); } @Test @DisplayName("Should return 0 with null array") void testWriteBytesWireFormatWithNullArray() { // Given byte[] dst = null; // When
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 17.1K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbFileOutputStreamTest.java
// Given when(mockTreeHandle.isSMB2()).thenReturn(true); when(mockTreeHandle.getSendBufferSize()).thenReturn(65536); when(mockFileHandle.isValid()).thenReturn(false, true); when(mockFileHandle.getFileId()).thenReturn(new byte[16]); when(mockFileHandle.acquire()).thenReturn(mockFileHandle);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 15.8K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/trans/TransCallNamedPipeTest.java
void testConstructorInitialization() { // Given int offset = 0; int length = TEST_DATA.length; // When transCallNamedPipe = new TransCallNamedPipe(mockConfig, TEST_PIPE_NAME, TEST_DATA, offset, length); // Then assertNotNull(transCallNamedPipe); assertEquals(SmbComTransaction.SMB_COM_TRANSACTION, transCallNamedPipe.getCommand());
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 10.8K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/Smb2CancelRequestTest.java
long asyncId = 67890L; // When Smb2CancelRequest request = new Smb2CancelRequest(mockConfig, mid, asyncId); // Then assertEquals(SMB2_CANCEL, request.getCommand()); assertEquals(mid, request.getMid()); assertEquals(asyncId, request.getAsyncId()); assertTrue((request.getFlags() & SMB2_FLAGS_ASYNC_COMMAND) != 0, "Async flag should be set when asyncId is non-zero"); } @Test
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 9.8K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/trans2/Trans2GetDfsReferralTest.java
void testConstructorWithNullFilename() { // When & Then assertDoesNotThrow(() -> new Trans2GetDfsReferral(mockConfig, null)); } @Test @DisplayName("Constructor should handle empty filename") void testConstructorWithEmptyFilename() { // When & Then assertDoesNotThrow(() -> new Trans2GetDfsReferral(mockConfig, "")); } @Test
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11K bytes - Viewed (0) -
src/test/java/jcifs/smb/DirFileEntryAdapterIteratorTest.java
void setUp() { lenient().when(mockFileEntry1.getName()).thenReturn("file1.txt"); lenient().when(mockFileEntry2.getName()).thenReturn("file2.txt"); lenient().when(mockFileEntry3.getName()).thenReturn("file3.txt"); lenient().when(mockResource1.getName()).thenReturn("file1.txt"); lenient().when(mockResource2.getName()).thenReturn("file2.txt"); lenient().when(mockResource3.getName()).thenReturn("file3.txt");
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 14.4K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/ioctl/SrvCopychunkCopyTest.java
when(mockChunk1.encode(any(byte[].class), anyInt())).thenReturn(CHUNK_SIZE); when(mockChunk2.encode(any(byte[].class), anyInt())).thenReturn(CHUNK_SIZE); SrvCopychunkCopy copy = new SrvCopychunkCopy(sourceKey, mockChunk1, mockChunk2); byte[] buffer = new byte[200]; // When copy.encode(buffer, 0); // Then
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 23.1K bytes - Viewed (0)