- Sort Score
- Result 10 results
- Languages All
Results 91 - 100 of 1,418 for Handle (0.69 sec)
-
src/test/java/jcifs/smb/SmbCopyUtilTest.java
SmbFileHandleImpl handle = mock(SmbFileHandleImpl.class); when(dest.openUnshared(anyInt(), anyInt(), anyInt(), anyInt(), anyInt())).thenReturn(handle); int attrs = SmbConstants.ATTR_NORMAL; // Act SmbFileHandleImpl result = SmbCopyUtil.openCopyTargetFile(dest, attrs, alsoRead); // Assert assertSame(handle, result, "Should return handle from dest.openUnshared");
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 12.1K bytes - Viewed (0) -
src/main/java/jcifs/dcerpc/msrpc/LsaPolicyHandle.java
import jcifs.smb.SmbException; /** * LSA policy handle for Local Security Authority operations. */ public class LsaPolicyHandle extends rpc.policy_handle implements AutoCloseable { private final DcerpcHandle handle; private boolean opened; /** * Constructs an LSA policy handle. * * @param handle the DCERPC handle * @param server the server nameRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 2.3K bytes - Viewed (0) -
impl/maven-cli/src/test/java/org/apache/maven/cling/invoker/mvnup/goals/ModelVersionUtilsTest.java
void shouldCompareVersionsCorrectly() { // Based on the actual implementation, it only handles specific cases assertTrue(ModelVersionUtils.isVersionGreaterOrEqual("4.1.0", "4.1.0")); assertFalse(ModelVersionUtils.isVersionGreaterOrEqual("4.0.0", "4.1.0")); // The implementation doesn't handle 4.1.0 >= 4.0.0 comparison assertFalse(ModelVersionUtils.isVersionGreaterOrEqual("4.1.0", "4.0.0"));
Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Tue Nov 18 18:03:26 UTC 2025 - 19.6K bytes - Viewed (0) -
src/test/java/jcifs/NetbiosNameTest.java
@DisplayName("Should handle various NetBIOS name types") void testVariousNameTypes(int nameType) { // Given when(mockNetbiosName.getNameType()).thenReturn(nameType); // When int result = mockNetbiosName.getNameType(); // Then assertEquals(nameType, result); } @Test @DisplayName("Should handle null name") void testNullName() {Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 8K bytes - Viewed (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) {Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sun Aug 24 00:12:28 UTC 2025 - 2.3K bytes - Viewed (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);
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 16.2K bytes - Viewed (0) -
src/main/java/jcifs/smb1/dcerpc/msrpc/MsrpcLsarOpenPolicy2.java
package jcifs.smb1.dcerpc.msrpc; /** * MSRPC implementation for opening an LSA policy handle. * This class provides functionality to open a handle to the LSA policy * database on a remote server using the LSA RPC interface. */ public class MsrpcLsarOpenPolicy2 extends lsarpc.LsarOpenPolicy2 { /** * Creates a new request to open an LSA policy handle. * * @param server the server name to connect toRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 2K bytes - Viewed (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,
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Fri Mar 22 20:39:42 UTC 2019 - 3.1K bytes - Viewed (0) -
src/test/java/jcifs/smb/NtStatusTest.java
assertNotNull(messages[0]); assertTrue(messages[0].toLowerCase().contains("success") || messages[0].toLowerCase().contains("completed")); } @Test @DisplayName("Should handle access denied status") void testAccessDeniedStatus() { // Given int status = NtStatus.NT_STATUS_ACCESS_DENIED; // When/Then assertEquals((int) 0xC0000022L, status);
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.6K bytes - Viewed (0) -
src/main/java/jcifs/dcerpc/msrpc/MsrpcSamrOpenDomain.java
import jcifs.dcerpc.rpc; /** * MSRPC implementation for opening a domain handle. * This class provides functionality to open a handle to a SAM domain * using the SAMR RPC interface. */ public class MsrpcSamrOpenDomain extends samr.SamrOpenDomain { /** * Creates a new request to open a domain handle. * * @param handle the SAM policy handle * @param access the desired access rightsRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 1.7K bytes - Viewed (0)