Search Options

Results per page
Sort
Preferred Languages
Advance

Results 401 - 410 of 613 for IllegalArgumentException (0.14 sec)

  1. okhttp/src/test/java/okhttp3/CacheControlJvmTest.kt

      }
    
      @Test
      @Throws(Exception::class)
      fun secondsMustBeNonNegative() {
        val builder = CacheControl.Builder()
        assertFailsWith<IllegalArgumentException> {
          builder.maxAge(-1, TimeUnit.SECONDS)
        }
      }
    
      @Test
      @Throws(Exception::class)
      fun timePrecisionIsTruncatedToSeconds() {
        val cacheControl =
          CacheControl.Builder()
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 7.3K bytes
    - Viewed (0)
  2. okhttp/src/test/java/okhttp3/DispatcherTest.kt

        dispatcher.maxRequestsPerHost = 10
        listener.forbidLock(dispatcher)
      }
    
      @Test
      fun maxRequestsZero() {
        assertFailsWith<IllegalArgumentException> {
          dispatcher.maxRequests = 0
        }
      }
    
      @Test
      fun maxPerHostZero() {
        assertFailsWith<IllegalArgumentException> {
          dispatcher.maxRequestsPerHost = 0
        }
      }
    
      @Test
      fun enqueuedJobsRunImmediately() {
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Fri Apr 05 03:30:42 UTC 2024
    - 12.7K bytes
    - Viewed (0)
  3. guava/src/com/google/common/collect/RegularImmutableMap.java

       * it does not, then null is returned. If it does, then if {@code throwIfDuplicateKeys} is true an
       * {@code IllegalArgumentException} is thrown, and otherwise the existing {@link Entry} is
       * returned.
       *
       * @throws IllegalArgumentException if another entry in the bucket has the same key and {@code
       *     throwIfDuplicateKeys} is true
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue May 28 18:11:09 UTC 2024
    - 16.2K bytes
    - Viewed (0)
  4. guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ForwardingImmutableMap.java

          K key = checkNotNull(entry.getKey());
          V previous = delegate.put(key, checkNotNull(entry.getValue()));
          if (throwIfDuplicateKeys && previous != null) {
            throw new IllegalArgumentException("duplicate key: " + key);
          }
        }
        this.delegate = Collections.unmodifiableMap(delegate);
      }
    
      boolean isPartialView() {
        return false;
      }
    
      public final boolean isEmpty() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Jan 24 16:03:45 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  5. guava/src/com/google/common/hash/MacHashFunction.java

          mac.init(key);
          return mac;
        } catch (NoSuchAlgorithmException e) {
          throw new IllegalStateException(e);
        } catch (InvalidKeyException e) {
          throw new IllegalArgumentException(e);
        }
      }
    
      @Override
      public Hasher newHasher() {
        if (supportsClone) {
          try {
            return new MacHasher((Mac) prototype.clone());
          } catch (CloneNotSupportedException e) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Feb 15 22:31:55 UTC 2022
    - 3.6K bytes
    - Viewed (0)
  6. src/main/java/jcifs/smb1/util/Encdec.java

                    return enc_uint64be( date.getTime(), dst, di );
                case TIME_1970_MILLIS_64LE:
                    return enc_uint64le( date.getTime(), dst, di );
                default:
                    throw new IllegalArgumentException( "Unsupported time encoding" );
            }
        }
    
        /* Decode times
         */
    
        public static Date dec_time( byte[] src, int si, int enc )
        {
            long t;
        
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Fri Mar 22 20:39:42 UTC 2019
    - 10.9K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/collect/EnumBiMapTest.java

        /* Map must have at least one entry if not an EnumBiMap. */
        assertThrows(
            IllegalArgumentException.class,
            () -> EnumBiMap.create(Collections.<Currency, Country>emptyMap()));
        assertThrows(
            IllegalArgumentException.class,
            () -> EnumBiMap.create(EnumHashBiMap.<Currency, Country>create(Currency.class)));
    
        /* Map can be empty if it's an EnumBiMap. */
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 11.8K bytes
    - Viewed (0)
  8. okhttp/src/test/java/okhttp3/HttpUrlTest.kt

      fun setPathSegmentRejectsDot() {
        val base = parse("http://host/a/b/c")
        assertFailsWith<IllegalArgumentException> {
          base.newBuilder().setPathSegment(0, ".")
        }
      }
    
      @Test
      fun setPathSegmentRejectsDotDot() {
        val base = parse("http://host/a/b/c")
        assertFailsWith<IllegalArgumentException> {
          base.newBuilder().setPathSegment(0, "..")
        }
      }
    
      @Test
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 67.9K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/io/IoTestCase.java

          try {
            File testFile = new File(testFileUrl.toURI());
            testDir = testFile.getParentFile(); // the testdata directory
          } catch (Exception ignore) {
            // probably URISyntaxException or IllegalArgumentException
            // fall back to copying URLs to files in the testDir == null block below
          }
        }
    
        if (testDir == null) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri May 31 12:36:13 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/collect/ImmutableMultisetTest.java

      }
    
      public void testBuilderAddCopiesIllegal() {
        ImmutableMultiset.Builder<String> builder = ImmutableMultiset.builder();
        assertThrows(IllegalArgumentException.class, () -> builder.addCopies("a", -2));
      }
    
      public void testBuilderSetCountHandlesNullsCorrectly() {
        ImmutableMultiset.Builder<String> builder = ImmutableMultiset.builder();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 20.8K bytes
    - Viewed (0)
Back to top