- Sort Score
- Num 10 results
- Language All
Results 71 - 80 of 821 for HANDLE (0.08 seconds)
-
src/test/java/jcifs/internal/smb2/Smb2SigningDigestTest.java
try { digest.verify(data, 0, data.length, 0, response); // If no exception is thrown, verification should return false or handle gracefully assertTrue(true, "Verify operation after close should either throw exception or handle gracefully"); } catch (RuntimeException e) { // Accept runtime exceptions that might be thrown due to closed stateCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 30 05:58:03 GMT 2025 - 43.7K bytes - Click Count (0) -
src/test/java/jcifs/ntlmssp/Type1MessageTest.java
@Test @DisplayName("Should handle null domain and workstation") void testNullDomainAndWorkstation() { // When Type1Message type1 = new Type1Message(mockContext, 0, null, null); // Then assertNull(type1.getSuppliedDomain()); assertNull(type1.getSuppliedWorkstation()); } @Test @DisplayName("Should handle case sensitivity in domain and workstation")Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 12.1K bytes - Click Count (0) -
src/main/java/jcifs/internal/witness/WitnessHeartbeatRequest.java
this.sequenceNumber = sequenceNumber; } /** * Gets the context handle. * * @return the context handle */ public byte[] getContextHandle() { return contextHandle; } /** * Sets the context handle. * * @param contextHandle the context handle */ public void setContextHandle(byte[] contextHandle) {Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sun Aug 24 00:12:28 GMT 2025 - 2.3K bytes - Click Count (0) -
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/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) -
src/main/java/jcifs/smb/SmbPipeInputStream.java
private final SmbPipeHandleImpl handle; /** * @param handle * @param th * @throws SmbException */ SmbPipeInputStream(final SmbPipeHandleImpl handle, final SmbTreeHandleImpl th) throws CIFSException { super(handle.getPipe(), th, null); this.handle = handle; } /** * Ensures that the tree connection is established.Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 3.8K bytes - Click Count (0) -
src/main/java/jcifs/smb1/dcerpc/msrpc/samr.idl
[op(0x01)] int SamrCloseHandle([in] policy_handle *handle); [op(0x39)] int SamrConnect2([in,string,unique] wchar_t *system_name, [in] uint32_t access_mask, [out] policy_handle *handle); [op(0x3e)] int SamrConnect4([in,string,unique] wchar_t *system_name, [in] uint32_t unknown, [in] uint32_t access_mask, [out] policy_handle *handle); [op(0x07)] int SamrOpenDomain([in] policy_handle *handle,
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Fri Mar 22 20:39:42 GMT 2019 - 3.1K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/util/WebApiUtilTest.java
fail("setObject should handle parameter validation gracefully: " + e.getMessage()); } // getObject should handle various inputs try { WebApiUtil.getObject("validKey"); WebApiUtil.getObject(""); WebApiUtil.getObject(null); } catch (Exception e) { fail("getObject should handle parameter validation gracefully: " + e.getMessage());
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Sun Jan 11 08:43:05 GMT 2026 - 17.4K bytes - Click Count (0) -
src/test/java/jcifs/smb/JAASAuthenticatorTest.java
Callback[] cbs = new Callback[] { nc, pc }; auth.handle(cbs); // Name should be formatted as username@domain assertEquals("user@DOM", nc.getName()); // Password should be set assertEquals("pass", new String(pc.getPassword())); } @Test @DisplayName("handle: sets only provided callbacks (name-only)") void testHandleNameOnly() throws Exception {
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 30 05:58:03 GMT 2025 - 9.9K 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)