Search Options

Results per page
Sort
Preferred Languages
Advance

Results 231 - 240 of 613 for IllegalArgumentException (0.39 sec)

  1. guava-tests/test/com/google/common/collect/FilteredCollectionsTestUtil.java

            C filtered1 = filter(unfiltered, EVEN);
            C filtered2 = filter(filtered1, PRIME_DIGIT);
    
            assertThrows(IllegalArgumentException.class, () -> filtered2.add(4));
    
            assertThrows(IllegalArgumentException.class, () -> filtered2.add(3));
    
            filtered2.add(2);
          }
        }
    
        public void testClearFilterFiltered() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 13K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/primitives/LongsTest.java

            .isEqualTo(new long[] {(long) 1, (long) 0, (long) 0});
      }
    
      public void testEnsureCapacity_fail() {
        assertThrows(IllegalArgumentException.class, () -> Longs.ensureCapacity(ARRAY1, -1, 1));
        assertThrows(IllegalArgumentException.class, () -> Longs.ensureCapacity(ARRAY1, 1, -1));
      }
    
      public void testJoin() {
        assertThat(Longs.join(",", EMPTY)).isEmpty();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 02:56:12 UTC 2024
    - 29.8K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/collect/ImmutableMapTest.java

                .put("two", 2);
        assertMapEquals(
            builder.buildKeepingLast(), "three", 3, "one", 1, "five", 5, "four", 4, "two", 2);
        IllegalArgumentException expected =
            assertThrows(IllegalArgumentException.class, () -> builder.buildOrThrow());
        // We don't really care which values the exception message contains, but they should be
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 41.1K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/collect/MultimapsTest.java

        assertThat(bazList).isEmpty();
        assertThrows(IllegalArgumentException.class, () -> bazList.add(5));
        assertThrows(IllegalArgumentException.class, () -> bazList.add(0, 6));
        assertThrows(IllegalArgumentException.class, () -> bazList.addAll(ImmutableList.of(7, 8)));
        assertThrows(IllegalArgumentException.class, () -> bazList.addAll(0, ImmutableList.of(9, 10)));
      }
    
      @J2ktIncompatible
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 38.4K bytes
    - Viewed (0)
  5. 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
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Wed Aug 21 12:41:59 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/reflect/TypeVisitor.java

     *     visit(t.getGenericComponentType());
     *   }
     *   protected void visitTypeVariable(TypeVariable<?> t) {
     *     throw new IllegalArgumentException("Cannot contain type variable.");
     *   }
     *   protected void visitWildcardType(WildcardType t) {
     *     throw new IllegalArgumentException("Cannot contain wildcard type.");
     *   }
     * }.visit(type);
     * }</pre>
     *
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Apr 16 21:10:04 UTC 2021
    - 3.7K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/primitives/DoublesTest.java

                    Doubles.ensureCapacity(ARRAY1, 2, 1)))
            .isTrue();
      }
    
      public void testEnsureCapacity_fail() {
        assertThrows(IllegalArgumentException.class, () -> Doubles.ensureCapacity(ARRAY1, -1, 1));
        assertThrows(IllegalArgumentException.class, () -> Doubles.ensureCapacity(ARRAY1, 1, -1));
      }
    
      @GwtIncompatible // Double.toString returns different value in GWT.
      public void testJoin() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 02:56:12 UTC 2024
    - 32.2K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/io/FilesTest.java

        Files.write(ASCII, temp1, UTF_8);
        assertThrows(IllegalArgumentException.class, () -> Files.copy(temp1, temp2));
        assertEquals(ASCII, Files.toString(temp1, UTF_8));
      }
    
      public void testCopySameFile() throws IOException {
        File temp = createTempFile();
        Files.write(ASCII, temp, UTF_8);
        assertThrows(IllegalArgumentException.class, () -> Files.copy(temp, temp));
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 23 14:22:54 UTC 2024
    - 22.1K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/reflect/ImmutableTypeToInstanceMapTest.java

        assertThrows(
            IllegalArgumentException.class, () -> map.getInstance(this.<Number>anyIterableType()));
      }
    
      public void testPut_containsTypeVariable() {
        ImmutableTypeToInstanceMap.Builder<Iterable<Integer>> builder =
            ImmutableTypeToInstanceMap.builder();
        assertThrows(
            IllegalArgumentException.class,
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Feb 22 17:15:24 UTC 2024
    - 6.8K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/util/concurrent/ThreadFactoryBuilderTest.java

        }
      }
    
      public void testPriority_tooLow() {
        assertThrows(
            IllegalArgumentException.class, () -> builder.setPriority(Thread.MIN_PRIORITY - 1));
      }
    
      public void testPriority_tooHigh() {
        assertThrows(
            IllegalArgumentException.class, () -> builder.setPriority(Thread.MAX_PRIORITY + 1));
      }
    
      public void testUncaughtExceptionHandler_custom() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 7.5K bytes
    - Viewed (0)
Back to top