- Sort Score
- Num 10 results
- Language All
Results 81 - 90 of 1,561 for Handle (0.09 seconds)
-
src/test/java/jcifs/SmbFileHandleTest.java
} /** * Test isValid() when the handle is valid. */ @Test void testIsValid_whenValid() { when(smbFileHandle.isValid()).thenReturn(true); assertTrue(smbFileHandle.isValid(), "isValid should return true when the handle is valid."); verify(smbFileHandle, times(1)).isValid(); } /** * Test isValid() when the handle is invalid. */ @TestCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 5.1K bytes - Click Count (0) -
src/test/java/jcifs/smb1/util/MimeMapTest.java
assertEquals("application/octet-stream", mimeMap.getMimeType("doesnotexist")); } @Test @DisplayName("Should handle case insensitive extensions") void testCaseInsensitiveExtensions() throws IOException { assertEquals("application/pdf", mimeMap.getMimeType("PDF"));
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 9.1K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb2/Smb2CancelRequestTest.java
// Then assertEquals(maxMid, request.getMid(), "Should handle maximum MID"); assertEquals(maxAsyncId, request.getAsyncId(), "Should handle maximum AsyncId"); assertEquals(maxCredits, request.getCredit(), "Should handle maximum credits"); assertEquals(maxTreeId, request.getTreeId(), "Should handle maximum tree ID"); } @TestCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 9.8K bytes - Click Count (0) -
tensorflow/c/eager/c_api.cc
return nullptr; } tensorflow::TensorHandle* handle = tensorflow::TensorHandleFromInterface(unwrapped_handle); if (handle->Type() != tensorflow::TensorHandle::LOCAL) { status->status = tensorflow::errors::InvalidArgument( "TFE_TensorHandleDevicePointer may not be called on a ", handle->TypeString(), " tensor handle."); return nullptr;Created: Tue Apr 07 12:39:13 GMT 2026 - Last Modified: Fri Nov 07 05:55:21 GMT 2025 - 43.9K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb2/ServerMessageBlock2ResponseTest.java
NtStatus.NT_STATUS_INVALID_PARAMETER }) @DisplayName("Should handle various status codes") void testVariousStatusCodes(int status) { response.setStatusForTest(status); assertEquals(status, response.getErrorCode()); } @ParameterizedTest @ValueSource(ints = { 0, 1, 10, 100, 255 }) @DisplayName("Should handle various credit values") void testVariousCreditValues(int credits) {Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 19.3K bytes - Click Count (0) -
src/main/java/jcifs/internal/witness/WitnessHeartbeatMessage.java
} /** * Sets the context handle for the heartbeat. * * @param contextHandle the context handle from registration */ public void setContextHandle(byte[] contextHandle) { this.contextHandle = contextHandle != null ? contextHandle.clone() : null; } /** * Gets the context handle. * * @return the context handle */ public byte[] getContextHandle() {Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 23 09:06:40 GMT 2025 - 5.8K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb2/create/CreateContextResponseTest.java
assertArrayEquals(expectedName, actualName); verify(response, times(1)).getName(); } @Test @DisplayName("getName() should handle null return value") void testGetNameWithNull() { CreateContextResponse response = mock(CreateContextResponse.class); when(response.getName()).thenReturn(null);
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 16.2K bytes - Click Count (0) -
src/test/java/jcifs/smb1/dcerpc/msrpc/LsaPolicyHandleTest.java
return null; }).when(mockDcerpcHandle).sendrecv(any(MsrpcLsarOpenPolicy2.class)); // Act LsaPolicyHandle handle = new LsaPolicyHandle(mockDcerpcHandle, server, access); // Assert assertNotNull(handle); verify(mockDcerpcHandle, times(1)).sendrecv(any(MsrpcLsarOpenPolicy2.class)); } @TestCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 7.2K bytes - Click Count (0) -
src/main/java/jcifs/smb/SIDCacheImpl.java
synchronized (this.sidCache) { try (DcerpcHandle handle = DcerpcHandle.getHandle("ncacn_np:" + authorityServerName + "[\\PIPE\\samr]", tc)) { final SamrPolicyHandle policyHandle = new SamrPolicyHandle(handle, authorityServerName, 0x00000030); final SamrDomainHandle domainHandle = new SamrDomainHandle(handle, policyHandle, 0x00000200, domsid.unwrap(sid_t.class));Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Mon Aug 25 14:34:10 GMT 2025 - 13.6K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb2/lease/Smb2LeaseStateTest.java
assertEquals(Smb2LeaseState.SMB2_LEASE_FULL, fullLease); } @Test @DisplayName("Should handle custom state combinations") void testCustomStateCombinations() { int customState = 0x06; // Write + Handle but no Read assertFalse(Smb2LeaseState.hasReadCaching(customState)); assertTrue(Smb2LeaseState.hasWriteCaching(customState));
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 21 00:16:17 GMT 2025 - 5.2K bytes - Click Count (0)