- Sort Score
- Result 10 results
- Languages All
Results 161 - 170 of 1,154 for Handle (0.04 sec)
-
src/test/java/jcifs/internal/smb2/ServerMessageBlock2Test.java
@Test @DisplayName("Should handle empty buffer encoding") void testEmptyBufferEncoding() { byte[] buffer = new byte[256]; testMessage.setBytesWritten(0); int len = testMessage.encode(buffer, 0); assertTrue(len >= Smb2Constants.SMB2_HEADER_LENGTH); } @Test @DisplayName("Should handle large MID values")
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 39.5K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/io/Smb2FlushResponseTest.java
// Then assertEquals(4, bytesRead, "Failed at position " + pos); } } @Test @DisplayName("Should handle buffer with exact required size") void testReadBytesWireFormatExactBufferSize() throws SMBProtocolDecodingException { // Given byte[] buffer = new byte[4];
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 10.3K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/nego/NegotiateContextResponseTest.java
assertArrayEquals(new int[] { 1, 2 }, context.getHashAlgos()); assertArrayEquals(new byte[] { 0x0A, 0x0B, 0x0C, 0x0D }, context.getSalt()); } @Test @DisplayName("Should handle empty arrays in decode") void testDecodeEmptyArrays() throws SMBProtocolDecodingException { // Arrange context = new PreauthIntegrityNegotiateContext();
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 19.4K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/lease/DirectoryLeaseManager.java
// Lease completely broken - invalidate cache entry.invalidate(); } if ((newState & Smb2LeaseState.SMB2_LEASE_HANDLE_CACHING) == 0) { // Lost handle cache - may need to close directory handle changeNotifier.stopWatching(directoryPath); } // Forward to base lease manager baseLeaseManager.handleLeaseBreak(leaseKey, newState); }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 23 01:47:47 UTC 2025 - 12.3K 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/test/java/jcifs/internal/smb2/ioctl/SrvCopyChunkCopyResponseTest.java
assertEquals(0, response.getChunkBytesWritten()); assertEquals(0, response.getTotalBytesWritten()); } @Test @DisplayName("Should handle negative values as unsigned") void testDecodeNegativeValuesAsUnsigned() throws SMBProtocolDecodingException { byte[] buffer = new byte[12]; SMBUtil.writeInt4(-1, buffer, 0); // chunksWritten
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 19.8K 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/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) -
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/internal/smb2/tree/Smb2TreeConnectRequestTest.java
System.arraycopy(buffer, bodyOffset + 8, actualPath, 0, pathBytes.length); assertArrayEquals(pathBytes, actualPath); } @Test @DisplayName("Should handle chain operation correctly") void testChain() { // Given ServerMessageBlock2 nextMessage = mock(ServerMessageBlock2.class); // When boolean result = request.chain(nextMessage);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 18.6K bytes - Viewed (0)