- Sort Score
- Result 10 results
- Languages All
Results 191 - 200 of 682 for bundle (0.04 sec)
-
src/test/java/jcifs/SmbSessionTest.java
@Test @DisplayName("Should handle self unwrap") void shouldHandleSelfUnwrap() { SmbSession mockSession = mock(SmbSession.class); when(mockSession.unwrap(SmbSession.class)).thenReturn(mockSession); SmbSession result = mockSession.unwrap(SmbSession.class); assertSame(mockSession, result, "unwrap should handle self unwrapping"); } }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 15.1K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/nego/Smb2NegotiateRequestTest.java
// Just verify that contexts were written assertTrue(bytesWritten > 60); // Should be larger than basic negotiate request } @Test @DisplayName("Should handle empty negotiate contexts array") void testWriteBytesWireFormatEmptyContexts() { // Given when(mockConfig.getMaximumVersion()).thenReturn(DialectVersion.SMB302);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 20.7K bytes - Viewed (0) -
src/test/java/jcifs/dcerpc/msrpc/samrTest.java
void testConstructorAndOpnum() { // When: Creating close handle message samr.SamrCloseHandle message = new samr.SamrCloseHandle(mockPolicyHandle); // Then: Should have correct opnum and handle assertEquals(0x01, message.getOpnum()); assertEquals(mockPolicyHandle, message.handle); } @Test
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 33.7K bytes - Viewed (0) -
src/main/java/jcifs/smb1/dcerpc/msrpc/MsrpcSamrCloseHandle.java
import jcifs.smb1.dcerpc.rpc; /** * MS-RPC SAMR close handle operation. * * This class implements the SAMR CloseHandle operation for releasing * Security Account Manager (SAM) handles. */ public class MsrpcSamrCloseHandle extends samr.SamrCloseHandle { /** * Creates a new request to close a SAM handle. * * @param policyHandle the policy handle to close */
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 1.5K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/Smb2EchoResponseTest.java
byte[] buffer = new byte[1024]; int result = echoResponse.writeBytesWireFormat(buffer, 0); assertEquals(0, result); } @Test @DisplayName("Should handle different buffer positions") void testWriteBytesWireFormatDifferentPositions() { byte[] buffer = new byte[1024]; assertEquals(0, echoResponse.writeBytesWireFormat(buffer, 0));
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 15.1K bytes - Viewed (0) -
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: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 15.6K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbExceptionTest.java
NtStatus.NT_STATUS_SHARING_VIOLATION, NtStatus.NT_STATUS_INVALID_PARAMETER }) @DisplayName("Should handle various NT status codes") void testVariousNTStatusCodes(int ntStatus) { // When SmbException exception = new SmbException(ntStatus, false); // Then assertNotNull(exception);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 7.9K bytes - Viewed (0) -
src/main/java/jcifs/internal/witness/WitnessRegistration.java
this.flags = flags; } /** * 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: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Mon Aug 25 14:34:10 UTC 2025 - 6.7K bytes - Viewed (0) -
src/main/java/jcifs/internal/witness/WitnessAsyncNotifyMessage.java
} /** * Sets the context handle for the async notify request. * * @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() {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 24 00:12:28 UTC 2025 - 16.4K bytes - Viewed (0) -
src/test/java/jcifs/smb1/dcerpc/msrpc/samrTest.java
void testConstructorAndOpnum() { // When: Creating close handle message samr.SamrCloseHandle message = new samr.SamrCloseHandle(mockPolicyHandle); // Then: Should have correct opnum and handle assertEquals(0x01, message.getOpnum()); assertEquals(mockPolicyHandle, message.handle); } @Test
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 33.6K bytes - Viewed (0)