- Sort Score
- Result 10 results
- Languages All
Results 181 - 190 of 1,418 for Handle (0.2 sec)
-
src/main/java/jcifs/smb/SmbFileInputStream.java
* @throws SmbException */ synchronized SmbFileHandleImpl ensureOpen() throws CIFSException { if (this.handle == null || !this.handle.isValid()) { // one extra acquire to keep this open till the stream is released if (this.file instanceof SmbNamedPipe) { this.handle = this.file.openUnshared(SmbConstants.O_EXCL, ((SmbNamedPipe) this.file).getPipeType() & 0xFF0000, this.sharing,Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 15.6K bytes - Viewed (0) -
src/test/java/jcifs/internal/dfs/DfsReferralDataImplTest.java
@NullAndEmptySource @DisplayName("Should handle null and empty links") void testNullAndEmptyLinks(String link) { referralData.setLink(link); assertEquals(link, referralData.getLink()); } @ParameterizedTest @NullAndEmptySource @DisplayName("Should handle null and empty keys") void testNullAndEmptyKeys(String key) {Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 30.6K bytes - Viewed (0) -
src/test/java/jcifs/internal/fscc/FileFsFullSizeInformationTest.java
// Should use caller available units, not actual free units assertEquals(500L * 8 * 512, fileFsFullSizeInfo.getFree()); } @Test @DisplayName("Should handle negative values in buffer") void shouldHandleNegativeValuesInBuffer() throws SMBProtocolDecodingException { // Given - negative values (treated as unsigned in protocol)Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 30.5K bytes - Viewed (0) -
docs/en/docs/advanced/middleware.md
If an incoming request does not validate correctly then a `400` response will be sent. ## `GZipMiddleware` { #gzipmiddleware } Handles GZip responses for any request that includes `"gzip"` in the `Accept-Encoding` header. The middleware will handle both standard and streaming responses. {* ../../docs_src/advanced_middleware/tutorial003_py39.py hl[2,6] *} The following arguments are supported:Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 20:41:43 UTC 2025 - 4.4K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/create/Smb2CloseResponseTest.java
assertEquals(2048, response.getEndOfFile()); assertEquals(0x10, response.getFileAttributes()); } @Test @DisplayName("Should handle all zero values correctly") void testReadBytesWireFormatWithZeroValues() throws SMBProtocolDecodingException { // Given byte[] buffer = new byte[60];
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 26.9K bytes - Viewed (0) -
src/test/java/jcifs/internal/fscc/FileSystemInformationTest.java
@Test @DisplayName("Should handle null buffer in decode") void testNullBuffer() { FileFsSizeInformation info = new FileFsSizeInformation(); assertThrows(NullPointerException.class, () -> { info.decode(null, 0, 0); }); } @Test @DisplayName("Should handle insufficient buffer length")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/https/HandlerTest.java
import org.junit.jupiter.api.Test; /** * Test suite for jcifs.https.Handler class. * Tests HTTPS URL stream handler functionality with NTLM authentication support. */ @DisplayName("HTTPS Handler Tests") class HandlerTest { private Handler handler; @BeforeEach void setUp() { handler = new Handler(null); } @Nested @DisplayName("Constructor Tests")Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 6.6K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/notify/Smb2ChangeNotifyResponseTest.java
assertEquals("Expected structureSize = 9", exception.getMessage()); } @Test @DisplayName("Should handle empty notification list") void testEmptyNotificationList() throws Exception { // Given byte[] buffer = new byte[256]; int offset = 0; setHeaderStart(response, 64);
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 18.8K bytes - Viewed (0) -
src/test/java/jcifs/ACETest.java
@Test @DisplayName("Should handle empty or null ApplyToText") void shouldHandleEmptyApplyToText() { ACE ace1 = mock(ACE.class); ACE ace2 = mock(ACE.class); when(ace1.getApplyToText()).thenReturn(""); when(ace2.getApplyToText()).thenReturn(null); assertEquals("", ace1.getApplyToText(), "Should handle empty apply text");Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 24.4K bytes - Viewed (0) -
src/test/java/jcifs/SmbWatchHandleTest.java
CIFSException expectedException = new CIFSException("Failed to close handle"); doThrow(expectedException).when(watchHandle).close(); // Execute and verify CIFSException thrown = assertThrows(CIFSException.class, () -> { watchHandle.close(); }); assertEquals("Failed to close handle", thrown.getMessage()); verify(watchHandle, times(1)).close(); }
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 13.2K bytes - Viewed (1)