Search Options

Results per page
Sort
Preferred Languages
Advance

Results 121 - 130 of 579 for a_value (0.08 sec)

  1. src/test/java/jcifs/smb1/smb1/AllocInfoTest.java

         * zero and negative capacities.
         */
        @ParameterizedTest
        @ValueSource(longs = { 0L, -1L, Long.MAX_VALUE })
        @DisplayName("capacity may be any long value")
        void testCapacityEdgeValues(long capacity) {
            when(mockAllocInfo.getCapacity()).thenReturn(capacity);
            assertEquals(capacity, mockAllocInfo.getCapacity());
        }
    
        /**
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 2.4K bytes
    - Viewed (0)
  2. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/-UtilCommon.kt

     * large, or [defaultValue] if it cannot be parsed.
     */
    internal fun String?.toNonNegativeInt(defaultValue: Int): Int {
      try {
        val value = this?.toLong() ?: return defaultValue
        return when {
          value > Int.MAX_VALUE -> Int.MAX_VALUE
          value < 0 -> 0
          else -> value.toInt()
        }
      } catch (_: NumberFormatException) {
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Mon May 05 16:01:00 UTC 2025
    - 10.1K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/primitives/DoublesTest.java

      public void testHashCode() {
        for (double value : VALUES) {
          assertThat(Doubles.hashCode(value)).isEqualTo(Double.hashCode(value));
        }
      }
    
      @SuppressWarnings("InlineMeInliner") // We need to test our method.
      public void testIsFinite() {
        for (double value : NUMBERS) {
          assertThat(Doubles.isFinite(value)).isEqualTo(Double.isFinite(value));
        }
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 30.9K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/fess/validation/CustomSizeValidator.java

            }
            message = constraintAnnotation.message();
            validateParameters();
        }
    
        @Override
        public boolean isValid(final CharSequence value, final ConstraintValidatorContext context) {
            if (value == null) {
                return true;
            }
    
            final HibernateConstraintValidatorContext hibernateContext = context.unwrap(HibernateConstraintValidatorContext.class);
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 3K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/util/concurrent/ForwardingExecutorServiceTest.java

        return System.getProperty("java.runtime.name", "").contains("Android");
      }
    
      private static boolean isBeforeJava19() {
        return JAVA_SPECIFICATION_VERSION.value().equals("1.8")
            || parseInt(JAVA_SPECIFICATION_VERSION.value()) < 19;
      }
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Mar 17 18:45:52 UTC 2025
    - 2.7K bytes
    - Viewed (0)
  6. src/test/java/jcifs/internal/smb2/ioctl/SrvCopychunkTest.java

            }
    
            @Test
            @DisplayName("Should encode maximum values correctly")
            void testEncodeMaxValues() {
                // Given
                long maxLong = Long.MAX_VALUE;
                int maxInt = Integer.MAX_VALUE;
                SrvCopychunk chunk = new SrvCopychunk(maxLong, maxLong, maxInt);
    
                // When
                int bytesWritten = chunk.encode(buffer, startIndex);
    
                // Then
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.4K bytes
    - Viewed (0)
  7. src/test/java/jcifs/util/InputValidatorTest.java

        void testRangeValidation(long value, long min, long max, boolean valid) {
            if (valid) {
                assertDoesNotThrow(() -> InputValidator.validateRange(value, min, max, "test"));
            } else {
                assertThrows(IllegalArgumentException.class, () -> InputValidator.validateRange(value, min, max, "test"));
            }
        }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 11.9K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/primitives/FloatsTest.java

      public void testHashCode() {
        for (float value : VALUES) {
          assertThat(Floats.hashCode(value)).isEqualTo(Float.hashCode(value));
        }
      }
    
      @SuppressWarnings("InlineMeInliner") // We need to test our method.
      public void testIsFinite() {
        for (float value : NUMBERS) {
          assertThat(Floats.isFinite(value)).isEqualTo(Float.isFinite(value));
        }
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 29.4K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/base/CharMatcherTest.java

        }
        for (int c = 0; c <= Character.MAX_VALUE; c++) {
          assertFalse(positive.contains(Character.valueOf((char) c)) ^ m.matches((char) c));
        }
      }
    
      static char[] randomChars(Random rand, int size) {
        Set<Character> chars = new HashSet<>(size);
        for (int i = 0; i < size; i++) {
          char c;
          do {
            c = (char) rand.nextInt(Character.MAX_VALUE - Character.MIN_VALUE + 1);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 30.4K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/primitives/FloatsTest.java

      public void testHashCode() {
        for (float value : VALUES) {
          assertThat(Floats.hashCode(value)).isEqualTo(Float.hashCode(value));
        }
      }
    
      @SuppressWarnings("InlineMeInliner") // We need to test our method.
      public void testIsFinite() {
        for (float value : NUMBERS) {
          assertThat(Floats.isFinite(value)).isEqualTo(Float.isFinite(value));
        }
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 29.4K bytes
    - Viewed (0)
Back to top