Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 221 - 230 of 863 for IllegalArgumentException (0.16 seconds)

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

      @CollectionFeature.Require(SUPPORTS_ADD)
      public void testAddOccurrencesNegative() {
        assertThrows(IllegalArgumentException.class, () -> getMultiset().add(e0(), -1));
      }
    
      @CollectionFeature.Require(SUPPORTS_ADD)
      public void testAddTooMany() {
        getMultiset().add(e3(), Integer.MAX_VALUE);
        assertThrows(IllegalArgumentException.class, () -> getMultiset().add(e3()));
        assertEquals(Integer.MAX_VALUE, getMultiset().count(e3()));
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Sep 22 20:54:16 GMT 2025
    - 4.1K bytes
    - Click Count (0)
  2. src/test/java/jcifs/RuntimeCIFSExceptionTest.java

            // Given
            Throwable cause = new IllegalArgumentException("Invalid argument");
    
            // When
            RuntimeCIFSException exception = new RuntimeCIFSException(cause);
    
            // Then
            assertNotNull(exception);
            assertEquals(cause, exception.getCause());
            assertTrue(exception.getMessage().contains("IllegalArgumentException"));
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 10.2K bytes
    - Click Count (0)
  3. src/test/java/org/codelibs/curl/io/ContentCacheTest.java

        }
    
        @Test
        public void testMemoryBasedCacheConstructorWithNull() {
            try {
                new ContentCache((byte[]) null);
                fail("Expected IllegalArgumentException");
            } catch (IllegalArgumentException e) {
                assertTrue(e.getMessage().contains("data must not be null"));
            }
        }
    
        @Test
        public void testMemoryBasedCacheDefensiveCopy() throws IOException {
    Created: Thu Apr 02 15:34:12 GMT 2026
    - Last Modified: Sat Mar 21 09:11:12 GMT 2026
    - 15.9K bytes
    - Click Count (0)
  4. android/guava-tests/test/com/google/common/collect/HashMultimapTest.java

        assertEquals(15, multimap.expectedValuesPerKey);
      }
    
      public void testCreateFromIllegalSizes() {
        assertThrows(IllegalArgumentException.class, () -> HashMultimap.create(-20, 15));
    
        assertThrows(IllegalArgumentException.class, () -> HashMultimap.create(20, -15));
      }
    
      public void testEmptyMultimapsEqual() {
        Multimap<String, Integer> setMultimap = HashMultimap.create();
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Aug 07 16:05:33 GMT 2025
    - 4.4K bytes
    - Click Count (0)
  5. guava-tests/test/com/google/common/collect/HashMultimapTest.java

        assertEquals(15, multimap.expectedValuesPerKey);
      }
    
      public void testCreateFromIllegalSizes() {
        assertThrows(IllegalArgumentException.class, () -> HashMultimap.create(-20, 15));
    
        assertThrows(IllegalArgumentException.class, () -> HashMultimap.create(20, -15));
      }
    
      public void testEmptyMultimapsEqual() {
        Multimap<String, Integer> setMultimap = HashMultimap.create();
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Aug 07 16:05:33 GMT 2025
    - 4.4K bytes
    - Click Count (0)
  6. build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/testfixtures/TestFixtureExtension.java

            if (fixtureProject == null) {
                throw new IllegalArgumentException("Could not find test fixture " + fixtureProject);
            }
            if (fixtureProject.file(TestFixturesPlugin.DOCKER_COMPOSE_YML).exists() == false) {
                throw new IllegalArgumentException(
                    "Project " + path + " is not a valid test fixture: missing " + TestFixturesPlugin.DOCKER_COMPOSE_YML
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Tue Jun 01 09:19:30 GMT 2021
    - 4.4K bytes
    - Click Count (0)
  7. guava-tests/test/com/google/common/primitives/LongsTest.java

      public void testMax_noArgs() {
        assertThrows(IllegalArgumentException.class, () -> max());
      }
    
      public void testMax() {
        assertThat(max(MIN_VALUE)).isEqualTo(MIN_VALUE);
        assertThat(max(MAX_VALUE)).isEqualTo(MAX_VALUE);
        assertThat(max(8L, 6L, 7L, 5L, 3L, 0L, 9L)).isEqualTo(9L);
      }
    
      public void testMin_noArgs() {
        assertThrows(IllegalArgumentException.class, () -> min());
      }
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Mar 17 16:45:58 GMT 2026
    - 28.8K bytes
    - Click Count (0)
  8. build-logic/binary-compatibility/src/main/kotlin/gradlebuild/binarycompatibility/metadata/KotlinMetadataQueries.kt

            get() = when (this) {
                is CtField -> "$name:$signature"
                is CtConstructor -> "<init>$signature"
                is CtMethod -> "$name$signature"
                else -> throw IllegalArgumentException("Unsupported javassist member type '${this::class}'")
            }
    }
    
    
    internal
    enum class MemberType {
        TYPE, CONSTRUCTOR, FIELD, METHOD
    }
    
    
    private
    Created: Wed Apr 01 11:36:16 GMT 2026
    - Last Modified: Fri Jul 04 09:21:38 GMT 2025
    - 4.8K bytes
    - Click Count (0)
  9. guava-tests/test/com/google/common/collect/HashBasedTableTest.java

        table4.put("foo", 1, 'a');
        assertEquals((Character) 'a', table4.get("foo", 1));
      }
    
      public void testCreateWithInvalidSizes() {
        assertThrows(IllegalArgumentException.class, () -> HashBasedTable.create(100, -5));
    
        assertThrows(IllegalArgumentException.class, () -> HashBasedTable.create(-5, 20));
      }
    
      public void testCreateCopy() {
        Table<String, Integer, Character> original =
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Aug 07 16:05:33 GMT 2025
    - 3.6K bytes
    - Click Count (0)
  10. guava/src/com/google/common/collect/AbstractIndexedListIterator.java

       * is, the first call to {@link #next()} will return the first element (or throw {@link
       * NoSuchElementException} if {@code size} is zero).
       *
       * @throws IllegalArgumentException if {@code size} is negative
       */
      protected AbstractIndexedListIterator(int size) {
        this(size, 0);
      }
    
      /**
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sun Dec 22 03:38:46 GMT 2024
    - 3.2K bytes
    - Click Count (0)
Back to Top