Search Options

Results per page
Sort
Preferred Languages
Advance

Results 161 - 170 of 628 for IllegalArgumentException (0.1 sec)

  1. guava-tests/test/com/google/common/base/SplitterTest.java

      }
    
      public void testFixedLengthSplitZeroChunkLen() {
        assertThrows(IllegalArgumentException.class, () -> Splitter.fixedLength(0));
      }
    
      public void testFixedLengthSplitNegativeChunkLen() {
        assertThrows(IllegalArgumentException.class, () -> Splitter.fixedLength(-1));
      }
    
      public void testLimitLarge() {
        String simple = "abcd";
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 29.5K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/net/HostSpecifierTest.java

          HostSpecifier.fromValid(spec);
          fail("Should have thrown IllegalArgumentException: " + spec);
        } catch (IllegalArgumentException expected) {
        }
    
        try {
          HostSpecifier.from(spec);
          fail("Should have thrown ParseException: " + spec);
        } catch (ParseException expected) {
          assertThat(expected).hasCauseThat().isInstanceOf(IllegalArgumentException.class);
        }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 18:46:00 UTC 2025
    - 3.7K bytes
    - Viewed (0)
  3. guava/src/com/google/common/collect/ImmutableMap.java

       *
       * @throws IllegalArgumentException if duplicate keys are provided
       */
      public static <K, V> ImmutableMap<K, V> of(K k1, V v1, K k2, V v2) {
        return RegularImmutableMap.fromEntries(entryOf(k1, v1), entryOf(k2, v2));
      }
    
      /**
       * Returns an immutable map containing the given entries, in order.
       *
       * @throws IllegalArgumentException if duplicate keys are provided
       */
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Aug 09 01:14:59 UTC 2025
    - 44.3K bytes
    - Viewed (0)
  4. src/main/java/jcifs/internal/witness/WitnessEventType.java

         * @return the corresponding WitnessEventType
         * @throws IllegalArgumentException if value is not recognized
         */
        public static WitnessEventType fromValue(int value) {
            for (WitnessEventType type : values()) {
                if (type.value == value) {
                    return type;
                }
            }
            throw new IllegalArgumentException("Unknown witness event type: " + value);
        }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 23 09:06:40 UTC 2025
    - 2.5K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/graph/AbstractStandardDirectedGraphTest.java

      }
    
      @Test
      public void putEdge_orderMismatch() {
        assume().that(graphIsMutable()).isTrue();
    
        EndpointPair<Integer> endpoints = EndpointPair.unordered(N1, N2);
        IllegalArgumentException e =
            assertThrows(IllegalArgumentException.class, () -> graphAsMutableGraph.putEdge(endpoints));
        assertThat(e).hasMessageThat().contains(ENDPOINTS_MISMATCH);
      }
    
      /**
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Dec 19 18:03:30 UTC 2024
    - 13.9K bytes
    - Viewed (0)
  6. android/guava-tests/benchmark/com/google/common/util/concurrent/MonitorBasedPriorityBlockingQueue.java

       * @throws NullPointerException {@inheritDoc}
       * @throws IllegalArgumentException {@inheritDoc}
       */
      @CanIgnoreReturnValue // pushed down from class to method
      @Override
      public int drainTo(Collection<? super E> c) {
        if (c == null) throw new NullPointerException();
        if (c == this) throw new IllegalArgumentException();
        Monitor monitor = this.monitor;
        monitor.enter();
        try {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 18:46:00 UTC 2025
    - 18.9K bytes
    - Viewed (0)
  7. okhttp/src/jvmTest/kotlin/okhttp3/CookieTest.kt

            .name("a")
            .value("b")
            .domain("example.com")
    
        assertThrows<IllegalArgumentException> {
          cookieBuilder.sameSite(" a").build()
        }
        assertThrows<IllegalArgumentException> {
          cookieBuilder.sameSite("a ").build()
        }
        assertThrows<IllegalArgumentException> {
          cookieBuilder.sameSite(" a ").build()
        }
    
        cookieBuilder.sameSite("a").build()
      }
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 24.4K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/fess/app/service/DuplicateHostService.java

         *
         * @param duplicateHostPager the pager containing search criteria and pagination settings
         * @return a list of DuplicateHost entities matching the search criteria
         * @throws IllegalArgumentException if duplicateHostPager is null
         */
        public List<DuplicateHost> getDuplicateHostList(final DuplicateHostPager duplicateHostPager) {
    
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 7.4K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/graph/DefaultNetworkImplementationsTest.java

        network.addNode(N1);
        network.addNode(N2);
        IllegalArgumentException e =
            assertThrows(
                IllegalArgumentException.class,
                () -> networkForTest.edgesConnecting(N1, NODE_NOT_IN_GRAPH));
        assertNodeNotInGraphErrorMessage(e);
        e =
            assertThrows(
                IllegalArgumentException.class,
                () -> networkForTest.edgesConnecting(NODE_NOT_IN_GRAPH, N2));
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Dec 19 18:03:30 UTC 2024
    - 7.4K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/net/InetAddresses.java

          if (b != (byte) 0xff) {
            return false;
          }
        }
        return true;
      }
    
      private static IllegalArgumentException formatIllegalArgumentException(
          String format, Object... args) {
        return new IllegalArgumentException(String.format(Locale.ROOT, format, args));
      }
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Feb 19 21:24:11 UTC 2025
    - 47.4K bytes
    - Viewed (0)
Back to top