Search Options

Results per page
Sort
Preferred Languages
Advance

Results 161 - 170 of 220 for 1014 (0.01 sec)

  1. src/test/java/jcifs/internal/CommonServerMessageBlockRequestTest.java

            verify(request, times(1)).split();
        }
    
        @Test
        @DisplayName("Test size returns positive message size")
        void testSizeReturnsPositiveValue() {
            // Given
            int expectedSize = 1024;
            when(request.size()).thenReturn(expectedSize);
    
            // When
            int result = request.size();
    
            // Then
            assertEquals(expectedSize, result);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.1K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/smb1/trans2/Trans2FindNext2Test.java

            // Test various filename formats
            trans2FindNext2 = new Trans2FindNext2(config, TEST_SID, TEST_RESUME_KEY, filename, TEST_BATCH_COUNT, TEST_BATCH_SIZE);
    
            byte[] buffer = new byte[1024];
            int written = trans2FindNext2.writeParametersWireFormat(buffer, 0);
    
            // Verify filename is written and can be read back
            String actualFilename = readString(buffer, 12, written - 12);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.2K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/smb2/ioctl/SrvPipePeekResponseTest.java

        @Test
        @DisplayName("Test decode with large data payload")
        void testDecodeWithLargeData() throws SMBProtocolDecodingException {
            // Prepare test data with large data section
            int dataSize = 1024;
            byte[] buffer = new byte[16 + dataSize];
            int bufferIndex = 0;
    
            // Set up test values
            int namedPipeState = 0x03;
            int readDataAvailable = dataSize;
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.9K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/smb2/ioctl/ValidateNegotiateInfoResponseTest.java

            // Test with different offset
            response = new ValidateNegotiateInfoResponse();
            buffer = new byte[50];
            bytesDecoded = response.decode(buffer, 10, 24);
            assertEquals(24, bytesDecoded, "Should return 24 bytes consumed regardless of offset");
        }
    
        @Test
        @DisplayName("Test server GUID reference")
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 10.8K bytes
    - Viewed (0)
  5. src/main/java/jcifs/smb1/smb1/SmbFileInputStream.java

                    final SmbComReadAndX request = new SmbComReadAndX(file.fid, fp, r, null);
                    if (file.type == SmbFile.TYPE_NAMED_PIPE) {
                        request.minCount = request.maxCount = request.remaining = 1024;
                    }
                    file.send(request, response);
                } catch (final SmbException se) {
                    if (file.type == SmbFile.TYPE_NAMED_PIPE && se.getNtStatus() == NtStatus.NT_STATUS_PIPE_BROKEN) {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 9.4K bytes
    - Viewed (0)
  6. src/test/java/jcifs/dcerpc/msrpc/MsrpcShareGetInfoTest.java

            // Test with large valid security descriptor
            srvsvc.ShareInfo502 info502 = new srvsvc.ShareInfo502();
            // Create a valid but large security descriptor
            byte[] largeDescriptor = new byte[1024];
            largeDescriptor[0] = 1; // revision
            largeDescriptor[1] = 0; // sbz1
            // Set control flags
            largeDescriptor[2] = 0;
            largeDescriptor[3] = 0;
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 14.3K bytes
    - Viewed (0)
  7. okhttp/src/jvmTest/kotlin/okhttp3/internal/ws/WebSocketReaderTest.kt

    /*
     * Copyright (C) 2014 Square, Inc.
     *
     * Licensed under the Apache License, Version 2.0 (the "License");
     * you may not use this file except in compliance with the License.
     * You may obtain a copy of the License at
     *
     *      http://www.apache.org/licenses/LICENSE-2.0
     *
     * Unless required by applicable law or agreed to in writing, software
     * distributed under the License is distributed on an "AS IS" BASIS,
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Tue Nov 04 16:11:23 UTC 2025
    - 14.4K bytes
    - Viewed (0)
  8. src/test/java/jcifs/internal/smb2/RequestWithFileIdTest.java

            emptyFileId = new byte[16];
            Arrays.fill(emptyFileId, (byte) 0);
    
            unspecifiedFileId = Smb2Constants.UNSPECIFIED_FILEID;
    
            testOutputBuffer = new byte[1024];
        }
    
        @Test
        @DisplayName("Should implement RequestWithFileId interface correctly")
        void testInterfaceImplementation() {
            // Test that common implementations properly implement the interface
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.9K bytes
    - Viewed (0)
  9. src/test/java/jcifs/internal/smb1/com/SmbComRenameTest.java

        public void testWriteBytesWireFormatLongFileNames() {
            // Given
            String longOldFileName = "a".repeat(255); // Max filename length
            String longNewFileName = "b".repeat(255);
            byte[] dst = new byte[1024];
            smbComRename = new SmbComRename(config, longOldFileName, longNewFileName);
            int dstIndex = 0;
    
            // When
            int result = smbComRename.writeBytesWireFormat(dst, dstIndex);
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.5K bytes
    - Viewed (0)
  10. src/test/java/jcifs/dcerpc/ndr/NdrBufferTest.java

    import jcifs.util.Encdec;
    
    public class NdrBufferTest {
    
        private byte[] buffer;
        private NdrBuffer ndrBuffer;
    
        @BeforeEach
        void setUp() {
            buffer = new byte[1024]; // Initialize with a reasonable size
            ndrBuffer = new NdrBuffer(buffer, 0);
        }
    
        @Test
        void testConstructor() {
            // Verify initial state
            assertEquals(0, ndrBuffer.start);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 14.3K bytes
    - Viewed (0)
Back to top