- Sort Score
- Num 10 results
- Language All
Results 111 - 120 of 863 for IllegalArgumentException (0.28 seconds)
-
android/guava/src/com/google/common/collect/ContiguousSet.java
/** * Returns a {@code ContiguousSet} containing the same values in the given domain {@linkplain * Range#contains contained} by the range. * * @throws IllegalArgumentException if neither range nor the domain has a lower bound, or if * neither has an upper bound * @since 13.0 */ public static <C extends Comparable> ContiguousSet<C> create(Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Aug 07 16:05:33 GMT 2025 - 9.9K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/base/AsciiTest.java
public void testTruncateIllegalArguments() { assertThrows(IllegalArgumentException.class, () -> Ascii.truncate("foobar", 2, "...")); assertThrows(IllegalArgumentException.class, () -> Ascii.truncate("foobar", 8, "1234567890")); assertThrows(IllegalArgumentException.class, () -> Ascii.truncate("foobar", -1, "...")); assertThrows(IllegalArgumentException.class, () -> Ascii.truncate("foobar", -1, "")); }
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Mar 13 13:01:07 GMT 2026 - 5.7K bytes - Click Count (0) -
guava-tests/test/com/google/common/base/AsciiTest.java
public void testTruncateIllegalArguments() { assertThrows(IllegalArgumentException.class, () -> Ascii.truncate("foobar", 2, "...")); assertThrows(IllegalArgumentException.class, () -> Ascii.truncate("foobar", 8, "1234567890")); assertThrows(IllegalArgumentException.class, () -> Ascii.truncate("foobar", -1, "...")); assertThrows(IllegalArgumentException.class, () -> Ascii.truncate("foobar", -1, "")); }
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Mar 13 13:01:07 GMT 2026 - 5.7K bytes - Click Count (0) -
api/maven-api-core/src/main/java/org/apache/maven/api/services/RepositoryAwareRequest.java
* @return the same list if validation passes, or {@code null} if input was {@code null} * @throws IllegalArgumentException if the list contains duplicate repositories * @throws IllegalArgumentException if the list contains null repository entries */ default List<RemoteRepository> validate(List<RemoteRepository> repositories) { if (repositories == null) {Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Fri Oct 10 07:30:49 GMT 2025 - 5K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb2/Smb2SigningDigestTest.java
} @Test @DisplayName("Should throw exception for SMB 3.1.1 without preauth hash") void testConstructorSmb311WithoutPreauthHash() { IllegalArgumentException exception = assertThrows(IllegalArgumentException.class, () -> new Smb2SigningDigest(sessionKey, Smb2Constants.SMB2_DIALECT_0311, null));Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 30 05:58:03 GMT 2025 - 43.7K bytes - Click Count (0) -
android/guava/src/com/google/common/graph/MutableValueGraph.java
* @return the value previously associated with the edge connecting {@code nodeU} to {@code * nodeV}, or null if there was no such edge. * @throws IllegalArgumentException if the introduction of the edge would violate {@link * #allowsSelfLoops()} * @throws IllegalArgumentException if the endpoints are unordered and the graph is directed * @since 27.1 */ @CanIgnoreReturnValueCreated: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Wed Mar 11 01:10:31 GMT 2026 - 4.3K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/cache/CacheBuilderTest.java
assertThrows(IllegalArgumentException.class, () -> builder.expireAfterWrite(-1, SECONDS)); } @J2ktIncompatible @GwtIncompatible // Duration public void testTimeToLive_negative_duration() { CacheBuilder<Object, Object> builder = CacheBuilder.newBuilder(); assertThrows( IllegalArgumentException.class, () -> builder.expireAfterWrite(Duration.ofSeconds(-1))); }
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Wed Mar 18 18:06:14 GMT 2026 - 25.7K bytes - Click Count (0) -
guava-tests/test/com/google/common/cache/CacheBuilderTest.java
assertThrows(IllegalArgumentException.class, () -> builder.expireAfterWrite(-1, SECONDS)); } @J2ktIncompatible @GwtIncompatible // Duration public void testTimeToLive_negative_duration() { CacheBuilder<Object, Object> builder = CacheBuilder.newBuilder(); assertThrows( IllegalArgumentException.class, () -> builder.expireAfterWrite(Duration.ofSeconds(-1))); }
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Wed Mar 18 18:06:14 GMT 2026 - 25.6K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb2/Smb2TransformHeaderTest.java
byte[] shortNonce = new byte[8]; byte[] longNonce = new byte[32]; // When/Then assertThrows(IllegalArgumentException.class, () -> { transformHeader.setNonce(shortNonce); }); assertThrows(IllegalArgumentException.class, () -> { transformHeader.setNonce(longNonce); }); } @Test
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 12.7K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/base/ThrowablesTest.java
} public void testGetRootCause_loop() { Exception cause = new Exception(); Exception exception = new Exception(cause); cause.initCause(exception); IllegalArgumentException expected = assertThrows(IllegalArgumentException.class, () -> getRootCause(cause)); assertThat(expected).hasCauseThat().isSameInstanceAs(cause); } @J2ktIncompatible // Format does not match
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Mar 13 13:01:07 GMT 2026 - 15K bytes - Click Count (0)