Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 199 for smaller (2.25 sec)

  1. src/test/java/jcifs/dcerpc/DcerpcExceptionTest.java

        }
    
        /**
         * Test getMessageByDcerpcError() with an error code smaller than any known.
         */
        @Test
        void testGetMessageByDcerpcError_smallerThanAny() {
            int unknownCode = -1;
            String message = DcerpcException.getMessageByDcerpcError(unknownCode);
            assertEquals("0xFFFFFFFF", message, "Should return hex string for code smaller than any known.");
        }
    
        /**
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.8K bytes
    - Viewed (0)
  2. src/main/java/jcifs/smb/compression/CompressionService.java

         */
        double estimateCompressionRatio(byte[] data, int algorithm);
    
        /**
         * Gets the minimum data size threshold for compression.
         * Data smaller than this threshold should not be compressed.
         *
         * @return minimum size in bytes for compression to be beneficial
         */
        int getMinCompressionSize();
    
        /**
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 5.2K bytes
    - Viewed (0)
  3. src/test/java/jcifs/pac/PacTest.java

            // Any PACDecodingException is acceptable for this test
            assertNotNull(e.getMessage());
        }
    
        @Test
        void testTooSmallPac() {
            // Test that PAC smaller than 8 bytes is rejected
            byte[] smallData = new byte[4];
    
            PACDecodingException e = assertThrows(PACDecodingException.class, () -> new Pac(smallData, keys));
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7.9K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/smb2/info/Smb2QueryDirectoryRequestTest.java

        void testSizeCalculationWithDifferentBufferSizes() {
            // Test with smaller maximum buffer size
            when(mockConfig.getMaximumBufferSize()).thenReturn(8192);
            when(mockConfig.getListSize()).thenReturn(16384);
    
            request = new Smb2QueryDirectoryRequest(mockConfig);
            assertNotNull(request);
    
            // Test with smaller list size
            when(mockConfig.getMaximumBufferSize()).thenReturn(16384);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 13.2K bytes
    - Viewed (0)
  5. src/main/java/jcifs/DialectVersion.java

        }
    
        /**
         * Get the minimum of two dialect versions
         *
         * @param a the first version to compare
         * @param b the second version to compare
         * @return smaller of the two versions
         */
        public static DialectVersion min(final DialectVersion a, final DialectVersion b) {
            if (a.atMost(b)) {
                return a;
            }
            return b;
        }
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 4.3K bytes
    - Viewed (0)
  6. src/test/java/jcifs/smb/compression/DefaultCompressionServiceTest.java

        }
    
        @Test
        @DisplayName("Test small data handling")
        public void testSmallDataHandling() throws CIFSException {
            byte[] smallData = new byte[100]; // Below minimum compression size
    
            byte[] compressed = compressionService.compress(smallData, CompressionService.COMPRESSION_LZ77);
            // Should return uncompressed data for small inputs
            assertArrayEquals(smallData, compressed);
        }
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 9.1K bytes
    - Viewed (0)
  7. src/test/java/org/codelibs/core/io/FileUtilTest.java

         *
         * @throws Exception
         */
        @Test
        public void testReadBytes_CustomMaxSize_WithinLimit() throws Exception {
            final File file = tempFolder.newFile("small.txt");
            final String content = "Small content";
            final FileOutputStream out = new FileOutputStream(file);
            try {
                out.write(content.getBytes("UTF-8"));
            } finally {
                out.close();
    Registered: Sat Dec 20 08:55:33 UTC 2025
    - Last Modified: Sat Nov 22 11:21:59 UTC 2025
    - 10.3K bytes
    - Viewed (0)
  8. src/test/java/jcifs/internal/smb2/ioctl/ValidateNegotiateInfoRequestTest.java

            ValidateNegotiateInfoRequest request =
                    new ValidateNegotiateInfoRequest(DEFAULT_CAPABILITIES, defaultClientGuid, DEFAULT_SECURITY_MODE, defaultDialects);
    
            // Create buffer smaller than required size
            byte[] smallBuffer = new byte[request.size() - 1];
    
            assertThrows(ArrayIndexOutOfBoundsException.class, () -> {
                request.encode(smallBuffer, 0);
            });
        }
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.7K bytes
    - Viewed (0)
  9. src/test/java/jcifs/smb1/util/HexdumpTest.java

            // Test integer conversion
            char[] dst1 = new char[8];
            Hexdump.toHexChars(0x1234ABCD, dst1, 0, 8);
            assertEquals("1234ABCD", new String(dst1));
    
            // Test with smaller size
            char[] dst2 = new char[4];
            Hexdump.toHexChars(0xABCD, dst2, 0, 4);
            assertEquals("ABCD", new String(dst2));
    
            // Test with offset
            char[] dst3 = new char[10];
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.4K bytes
    - Viewed (0)
  10. src/test/java/jcifs/internal/smb2/nego/Smb2NegotiateResponseInputValidationTest.java

            byte[] tooSmallBuffer = new byte[32]; // Much smaller than required 65 bytes
    
            SMBProtocolDecodingException exception = assertThrows(SMBProtocolDecodingException.class, () -> {
                response.readBytesWireFormat(tooSmallBuffer, 0);
            });
    
            assertTrue(exception.getMessage().contains("Buffer too small for SMB2 negotiate response"));
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 15.8K bytes
    - Viewed (0)
Back to top