- Sort Score
- Num 10 results
- Language All
Results 141 - 150 of 863 for IllegalArgumentException (0.17 seconds)
-
android/guava/src/com/google/common/collect/ImmutableSortedMap.java
* elements. The generated map is sorted by the natural ordering of the keys. * * <p>If the mapped keys contain duplicates, an {@code IllegalArgumentException} is thrown when * the collection operation is performed. (This differs from the {@code Collector} returned by * {@link Collectors#toMap(Function, Function)}, which throws an {@code IllegalStateException}.) *Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Jan 08 18:10:02 GMT 2026 - 54.7K bytes - Click Count (0) -
android/guava/src/com/google/common/math/BigIntegerMath.java
public final class BigIntegerMath { /** * Returns the smallest power of two greater than or equal to {@code x}. This is equivalent to * {@code BigInteger.valueOf(2).pow(log2(x, CEILING))}. * * @throws IllegalArgumentException if {@code x <= 0} * @since 20.0 */ public static BigInteger ceilingPowerOfTwo(BigInteger x) { return BigInteger.ZERO.setBit(log2(x, CEILING)); } /**Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Aug 07 16:05:33 GMT 2025 - 18.8K bytes - Click Count (0) -
guava-tests/test/com/google/common/primitives/CharsTest.java
.isEqualTo(new char[] {(char) 1, (char) 0, (char) 0}); } public void testEnsureCapacity_fail() { assertThrows(IllegalArgumentException.class, () -> Chars.ensureCapacity(ARRAY1, -1, 1)); assertThrows(IllegalArgumentException.class, () -> Chars.ensureCapacity(ARRAY1, 1, -1)); } public void testJoin() { assertThat(Chars.join(",", EMPTY)).isEmpty();
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sun Mar 08 01:43:32 GMT 2026 - 26K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/graph/TraverserTest.java
assertThrows( IllegalArgumentException.class, () -> Traverser.forTree(createDirectedGraph()).breadthFirst('a')); } @Test public void forTree_breadthFirstIterable_emptyGraph() { assertEqualCharNodes( Traverser.forTree(createDirectedGraph()).breadthFirst(charactersOf("")), ""); assertThrows( IllegalArgumentException.class,
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Sep 30 17:09:51 GMT 2025 - 47.4K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/collect/ContiguousSetTest.java
public void testInvalidIntRange() { assertThrows(IllegalArgumentException.class, () -> ContiguousSet.closed(2, 1)); assertThrows(IllegalArgumentException.class, () -> ContiguousSet.closedOpen(2, 1)); } public void testInvalidLongRange() { assertThrows(IllegalArgumentException.class, () -> ContiguousSet.closed(2L, 1L)); assertThrows(IllegalArgumentException.class, () -> ContiguousSet.closedOpen(2L, 1L)); }
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Jan 08 18:10:02 GMT 2026 - 19.6K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/sso/SsoResponseTypeTest.java
public void test_valueOf_invalidName() { // Test valueOf with invalid name throws exception try { SsoResponseType.valueOf("INVALID"); fail("Expected IllegalArgumentException"); } catch (IllegalArgumentException e) { // Expected exception assertTrue(e.getMessage().contains("INVALID")); } } @Test public void test_valueOf_null() {
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Fri Mar 13 23:01:26 GMT 2026 - 6.3K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/eventbus/SubscriberRegistryTest.java
assertThrows(IllegalArgumentException.class, () -> registry.unregister(new StringSubscriber())); StringSubscriber s1 = new StringSubscriber(); registry.register(s1); assertThrows(IllegalArgumentException.class, () -> registry.unregister(new StringSubscriber())); registry.unregister(s1); assertThrows(IllegalArgumentException.class, () -> registry.unregister(s1)); }
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Dec 19 18:03:30 GMT 2024 - 5.8K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/primitives/ReflectionFreeAssertThrows.java
e -> e instanceof ConcurrentModificationException) .put(ExecutionException.class, e -> e instanceof ExecutionException) .put(IllegalArgumentException.class, e -> e instanceof IllegalArgumentException) .put(IllegalStateException.class, e -> e instanceof IllegalStateException) .put(IndexOutOfBoundsException.class, e -> e instanceof IndexOutOfBoundsException)Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Aug 07 16:05:33 GMT 2025 - 6.3K bytes - Click Count (0) -
guava-tests/test/com/google/common/net/ReflectionFreeAssertThrows.java
e -> e instanceof ConcurrentModificationException) .put(ExecutionException.class, e -> e instanceof ExecutionException) .put(IllegalArgumentException.class, e -> e instanceof IllegalArgumentException) .put(IllegalStateException.class, e -> e instanceof IllegalStateException) .put(IndexOutOfBoundsException.class, e -> e instanceof IndexOutOfBoundsException)Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Aug 07 16:05:33 GMT 2025 - 6.2K bytes - Click Count (0) -
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));
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Dec 19 18:03:30 GMT 2024 - 7.4K bytes - Click Count (0)