Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 20 for MIN_VALUE (4.18 sec)

  1. src/test/java/jcifs/internal/smb1/com/ServerDataTest.java

            serverData.sflags2 = Integer.MIN_VALUE;
            serverData.smaxMpxCount = Integer.MIN_VALUE;
            serverData.maxBufferSize = Integer.MIN_VALUE;
            serverData.sessKey = Integer.MIN_VALUE;
            serverData.scapabilities = Integer.MIN_VALUE;
    
            assertEquals(Integer.MIN_VALUE, serverData.sflags2);
            assertEquals(Integer.MIN_VALUE, serverData.smaxMpxCount);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 17K bytes
    - Viewed (0)
  2. fess-crawler/src/test/java/org/codelibs/fess/crawler/CrawlerContextTest.java

            crawlerContext.setActiveThreadCount(Integer.MIN_VALUE);
            assertEquals(Integer.MIN_VALUE, crawlerContext.getActiveThreadCount().intValue());
    
            crawlerContext.setNumOfThread(Integer.MIN_VALUE);
            assertEquals(Integer.MIN_VALUE, crawlerContext.getNumOfThread());
    
            crawlerContext.setMaxThreadCheckCount(Integer.MIN_VALUE);
            assertEquals(Integer.MIN_VALUE, crawlerContext.getMaxThreadCheckCount());
    
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Sat Sep 06 04:15:37 UTC 2025
    - 25.6K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/AllocInfoTest.java

            void shouldHandleMinimumLongValues() {
                // Given
                TestAllocInfo allocInfo = new TestAllocInfo(Long.MIN_VALUE, Long.MIN_VALUE);
    
                // When & Then
                assertEquals(Long.MIN_VALUE, allocInfo.getCapacity());
                assertEquals(Long.MIN_VALUE, allocInfo.getFree());
            }
    
            @Test
            @DisplayName("Should calculate used space correctly")
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 18.8K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/CommonServerMessageBlockTest.java

            when(messageBlock.getMid()).thenReturn(maxMid);
    
            messageBlock.setMid(maxMid);
            assertEquals(maxMid, messageBlock.getMid());
    
            // Test with MIN_VALUE
            long minMid = Long.MIN_VALUE;
            doNothing().when(messageBlock).setMid(minMid);
            when(messageBlock.getMid()).thenReturn(minMid);
    
            messageBlock.setMid(minMid);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 15.7K bytes
    - Viewed (0)
  5. src/test/java/jcifs/util/ServerResponseValidatorTest.java

            // Test boundary values for safe operations
            assertEquals(Integer.MAX_VALUE, validator.safeAdd(Integer.MAX_VALUE, 0));
            assertEquals(Integer.MIN_VALUE, validator.safeAdd(Integer.MIN_VALUE, 0));
            assertEquals(0, validator.safeMultiply(0, Integer.MAX_VALUE));
            assertEquals(1, validator.safeMultiply(1, 1));
    
            // Test exact buffer boundaries
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 14.2K bytes
    - Viewed (0)
  6. src/test/java/jcifs/internal/fscc/FileEndOfFileInformationTest.java

            assertTrue(info.toString().contains("endOfFile=" + endOfFile));
        }
    
        @ParameterizedTest
        @ValueSource(longs = { 0L, 1L, 100L, 1024L, Long.MAX_VALUE, -1L, Long.MIN_VALUE })
        @DisplayName("Test constructor with various end of file values")
        void testConstructorWithVariousValues(long endOfFile) {
            FileEndOfFileInformation info = new FileEndOfFileInformation(endOfFile);
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.9K bytes
    - Viewed (0)
  7. src/test/java/jcifs/util/InputValidatorTest.java

            assertThrows(ArithmeticException.class, () -> InputValidator.safeAdd(Integer.MAX_VALUE, 1));
            assertThrows(ArithmeticException.class, () -> InputValidator.safeAdd(Integer.MIN_VALUE, -1));
        }
    
        @Test
        @DisplayName("Test safe integer multiplication")
        void testSafeMultiplication() {
            assertEquals(100, InputValidator.safeMultiply(10, 10));
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 11.9K bytes
    - Viewed (0)
  8. src/main/java/jcifs/util/InputValidator.java

         */
        public static void validateIntegerAddition(int a, int b, String operation) {
            long result = (long) a + (long) b;
            if (result > Integer.MAX_VALUE || result < Integer.MIN_VALUE) {
                throw new ArithmeticException(operation + " would cause integer overflow: " + a + " + " + b);
            }
        }
    
        /**
         * Validates integer multiplication for safe arithmetic
         *
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 13.5K bytes
    - Viewed (0)
  9. src/test/java/jcifs/internal/fscc/FileInternalInfoTest.java

        void testDecodeWithMinIndexNumber() throws SMBProtocolDecodingException {
            // Prepare test data
            byte[] buffer = new byte[8];
            long expectedIndexNumber = Long.MIN_VALUE;
    
            // Encode test data
            SMBUtil.writeInt8(expectedIndexNumber, buffer, 0);
    
            // Decode
            int bytesDecoded = fileInternalInfo.decode(buffer, 0, buffer.length);
    
            // Verify
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 13.1K bytes
    - Viewed (0)
  10. src/main/java/jcifs/util/ServerResponseValidator.java

         */
        public int safeAdd(int a, int b) throws SmbException {
            totalValidations.incrementAndGet();
    
            long result = (long) a + (long) b;
            if (result > Integer.MAX_VALUE || result < Integer.MIN_VALUE) {
                failedValidations.incrementAndGet();
                integerOverflowsPrevented.incrementAndGet();
                log.warn("Integer overflow in addition: {} + {} = {}", a, b, result);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 16.6K bytes
    - Viewed (0)
Back to top