Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 301 - 310 of 863 for IllegalArgumentException (0.13 seconds)

  1. android/guava-testlib/src/com/google/common/collect/testing/google/MultisetRemoveTester.java

    @SuppressWarnings("JUnit4ClassUsedInJUnit3")
    public class MultisetRemoveTester<E> extends AbstractMultisetTester<E> {
      @CollectionFeature.Require(SUPPORTS_REMOVE)
      public void testRemoveNegative() {
        assertThrows(IllegalArgumentException.class, () -> getMultiset().remove(e0(), -1));
        expectUnchanged();
      }
    
      @CollectionFeature.Require(absent = SUPPORTS_REMOVE)
      public void testRemoveUnsupported() {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Aug 07 16:05:33 GMT 2025
    - 7K bytes
    - Click Count (0)
  2. guava-testlib/src/com/google/common/collect/testing/google/MultisetRemoveTester.java

    @SuppressWarnings("JUnit4ClassUsedInJUnit3")
    public class MultisetRemoveTester<E> extends AbstractMultisetTester<E> {
      @CollectionFeature.Require(SUPPORTS_REMOVE)
      public void testRemoveNegative() {
        assertThrows(IllegalArgumentException.class, () -> getMultiset().remove(e0(), -1));
        expectUnchanged();
      }
    
      @CollectionFeature.Require(absent = SUPPORTS_REMOVE)
      public void testRemoveUnsupported() {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Aug 07 16:05:33 GMT 2025
    - 7K bytes
    - Click Count (0)
  3. src/test/java/jcifs/smb1/UniAddressTest.java

        }
    
        @Test
        void constructorRejectsNull() {
            // Expect constructor to throw IllegalArgumentException when passed null
            assertThrows(IllegalArgumentException.class, () -> new UniAddress(null));
        }
    
        /* ---------------------------------------------------------------------
         * 2. Value based tests for instance methods
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 7.9K bytes
    - Click Count (0)
  4. guava-tests/benchmark/com/google/common/collect/ConcurrentHashMultisetBenchmark.java

         *
         * @param element the element to add
         * @param occurrences the number of occurrences to add
         * @return the previous count of the element before the operation; possibly zero
         * @throws IllegalArgumentException if {@code occurrences} is negative, or if the resulting
         *     amount would exceed {@link Integer#MAX_VALUE}
         */
        @Override
        public int add(E element, int occurrences) {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Jul 14 14:44:08 GMT 2025
    - 16.6K bytes
    - Click Count (0)
  5. okhttp/src/androidMain/kotlin/okhttp3/internal/platform/android/Android10SocketAdapter.kt

          // Enable ALPN.
          sslParameters.applicationProtocols = Platform.alpnProtocolNames(protocols).toTypedArray()
    
          sslSocket.sslParameters = sslParameters
        } catch (iae: IllegalArgumentException) {
          // probably java.lang.IllegalArgumentException: Invalid input to toASCII from IDN.toASCII
          throw IOException("Android internal error", iae)
        }
      }
    
      @SuppressSignatureCheck
      companion object {
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Sat Jan 10 09:36:53 GMT 2026
    - 2.8K bytes
    - Click Count (0)
  6. guava-tests/test/com/google/common/reflect/SubtypeTester.java

                .isNotEqualTo(paramType);
          } catch (IllegalArgumentException notSubtype1) {
            // The raw class isn't even a subclass.
          }
        }
        if (!spec.suppressGetSupertype()) {
          try {
            assertThat(getSupertype(paramType, TypeToken.of(returnType).getRawType()))
                .isNotEqualTo(returnType);
          } catch (IllegalArgumentException notSubtype2) {
            // The raw class isn't even a subclass.
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Mar 17 16:11:48 GMT 2026
    - 6.1K bytes
    - Click Count (0)
  7. android/guava-tests/test/com/google/common/eventbus/EventBusTest.java

        bus.register(new Object());
      }
    
      public void testUnregister() {
        StringCatcher catcher1 = new StringCatcher();
        StringCatcher catcher2 = new StringCatcher();
        assertThrows(IllegalArgumentException.class, () -> bus.unregister(catcher1));
    
        bus.register(catcher1);
        bus.post(EVENT);
        bus.register(catcher2);
        bus.post(EVENT);
    
        List<String> expectedEvents = new ArrayList<>();
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 12 17:47:10 GMT 2026
    - 11.6K bytes
    - Click Count (0)
  8. guava-tests/test/com/google/common/eventbus/EventBusTest.java

        bus.register(new Object());
      }
    
      public void testUnregister() {
        StringCatcher catcher1 = new StringCatcher();
        StringCatcher catcher2 = new StringCatcher();
        assertThrows(IllegalArgumentException.class, () -> bus.unregister(catcher1));
    
        bus.register(catcher1);
        bus.post(EVENT);
        bus.register(catcher2);
        bus.post(EVENT);
    
        List<String> expectedEvents = new ArrayList<>();
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 12 17:47:10 GMT 2026
    - 11.6K bytes
    - Click Count (0)
  9. guava-tests/test/com/google/common/math/StatsTest.java

                    + ", max="
                    + MANY_VALUES_STATS_ITERABLE.max()
                    + "}");
      }
    
      public void testMeanOf() {
        assertThrows(IllegalArgumentException.class, Stats::meanOf);
        assertThrows(IllegalArgumentException.class, () -> Stats.meanOf(ImmutableList.<Number>of()));
        assertThat(Stats.meanOf(ONE_VALUE)).isWithin(ALLOWED_ERROR).of(ONE_VALUE);
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Mar 17 16:11:48 GMT 2026
    - 33.4K bytes
    - Click Count (0)
  10. guava-tests/test/com/google/common/primitives/UnsignedBytesTest.java

      }
    
      private static void assertCastFails(long value) {
        try {
          UnsignedBytes.checkedCast(value);
          fail("Cast to byte should have failed: " + value);
        } catch (IllegalArgumentException ex) {
          assertWithMessage("%s not found in exception text: %s", value, ex.getMessage())
              .that(ex.getMessage().contains(String.valueOf(value)))
              .isTrue();
        }
      }
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sun Mar 08 01:43:32 GMT 2026
    - 14K bytes
    - Click Count (0)
Back to Top