- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 967 for When (0.02 sec)
-
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/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/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 propertiesRegistered: 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/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/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/dcerpc/rpcTest.java
when(mockNdrBuffer.dec_ndr_short()).thenReturn((int) (short) 0, (int) (short) 0); when(mockNdrBuffer.dec_ndr_long()).thenReturn(0); // Null referent pointer // When: Decoding the unicode string unicodeString.decode(mockNdrBuffer); // Then: Verify the decoding sequence and values verify(mockNdrBuffer).align(4);Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 20.5K 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; // WhenRegistered: 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/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"); } @TestRegistered: 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/trans/nt/SmbComNtCancelTest.java
when(config.getPid()).thenReturn(12345); // When Constructor<SmbComNtCancel> constructor = SmbComNtCancel.class.getDeclaredConstructor(Configuration.class, int.class); constructor.setAccessible(true); SmbComNtCancel cancel = constructor.newInstance(config, mid); // Then assertNotNull(cancel);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 12.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)