- Sort Score
- Result 10 results
- Languages All
Results 231 - 240 of 682 for bundle (0.04 sec)
-
src/test/java/jcifs/internal/smb2/ServerMessageBlock2Test.java
@Test @DisplayName("Should handle empty buffer encoding") void testEmptyBufferEncoding() { byte[] buffer = new byte[256]; testMessage.setBytesWritten(0); int len = testMessage.encode(buffer, 0); assertTrue(len >= Smb2Constants.SMB2_HEADER_LENGTH); } @Test @DisplayName("Should handle large MID values")
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 39.5K bytes - Viewed (0) -
src/test/java/jcifs/internal/fscc/FileFsSizeInformationTest.java
assertEquals(2048L * 4 * 4096, fileFsSizeInfo.getCapacity()); assertEquals(1024L * 4 * 4096, fileFsSizeInfo.getFree()); } @Test @DisplayName("Should handle negative values in buffer") void shouldHandleNegativeValuesInBuffer() throws SMBProtocolDecodingException { // Given - negative values (treated as unsigned in protocol)
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 25.9K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbRandomAccessFileTest.java
} @Test @DisplayName("close(): clears cache and closes handle; does not close shared SmbFile") void close_sharedFile_closesHandle_only() throws Exception { SmbRandomAccessFile raf = newInstance("rw", false, true, false); SmbFile file = (SmbFile) getField(raf, "file"); SmbFileHandleImpl handle = (SmbFileHandleImpl) getField(raf, "handle"); // Act raf.close();
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 18.1K bytes - Viewed (0) -
src/test/java/jcifs/smb1/util/HexdumpTest.java
assertEquals("FFFE80", Hexdump.toHexString(data2, 0, 6)); // 6 chars = 3 bytes assertEquals("FFFE807F", Hexdump.toHexString(data2, 0, 8)); // 8 chars = 4 bytes // Test odd size (should handle correctly) byte[] data3 = { 0x0A, 0x0B, 0x0C }; assertEquals("0", Hexdump.toHexString(data3, 0, 1)); // 1 char = 0.5 bytes (rounds up to 1)
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.4K bytes - Viewed (0) -
src/test/java/jcifs/smb/DirFileEntryEnumIteratorBaseTest.java
// Next call should handle CIFSException and close iterator assertFalse(it.hasNext()); // After error, hasNext should return false // Assert verify(tree, times(1)).release(); } @Test @DisplayName("close() closes when there is a next element and releases handle") void explicitClose() throws Exception { // Arrange
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 14.5K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbFileOutputStreamTest.java
} @Test void testConstructorWithSmbFileOnly() throws IOException, CIFSException { // Given // Mock the AutoCloseable tree handle behavior SmbTreeHandleImpl autoCloseableMockTreeHandle = mock(SmbTreeHandleImpl.class); when(mockFile.ensureTreeConnected()).thenReturn(autoCloseableMockTreeHandle);
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/util/CryptoTest.java
} @ParameterizedTest @ValueSource(strings = { "", "a", "short", "medium length text", "very long text that exceeds typical block sizes" }) @DisplayName("Should handle various input sizes for hashing") void testHashVariousInputSizes(String input) { // Given byte[] data = input.getBytes(); // When MessageDigest md4 = Crypto.getMD4();
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 7.4K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/persistent/Smb2HandleCapabilities.java
* Lesser General Public License for more details. */ package jcifs.internal.smb2.persistent; /** * Constants for SMB2/3 durable and persistent handle capabilities. */ public final class Smb2HandleCapabilities { /** * Flag indicating persistent handle capability */ public static final int SMB2_DHANDLE_FLAG_PERSISTENT = 0x00000002; /** * Default timeout for durable handles (2 minutes)
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 21 04:51:33 UTC 2025 - 1.3K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/tree/Smb2TreeConnectRequestTest.java
System.arraycopy(buffer, bodyOffset + 8, actualPath, 0, pathBytes.length); assertArrayEquals(pathBytes, actualPath); } @Test @DisplayName("Should handle chain operation correctly") void testChain() { // Given ServerMessageBlock2 nextMessage = mock(ServerMessageBlock2.class); // When boolean result = request.chain(nextMessage);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 18.6K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/lease/LeaseManagerTest.java
leaseManager.updateLease(key, grantedState); LeaseEntry entry = leaseManager.getLease(key); assertEquals(grantedState, entry.getLeaseState()); } @Test @DisplayName("Should handle lease break") void testHandleLeaseBreak() { String path = "/share/file.txt"; int initialState = Smb2LeaseState.SMB2_LEASE_FULL; int newState = Smb2LeaseState.SMB2_LEASE_READ_CACHING;
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 21 00:16:17 UTC 2025 - 13.2K bytes - Viewed (0)