- Sort Score
- Num 10 results
- Language All
Results 791 - 800 of 863 for IllegalArgumentException (0.7 seconds)
-
guava-testlib/test/com/google/common/testing/NullPointerTesterTest.java
private class Inner { @Keep public Inner(String s) { checkNotNull(s); } } public void testNonStaticInnerClass() { IllegalArgumentException expected = assertThrows( IllegalArgumentException.class, () -> new NullPointerTester().testAllPublicConstructors(Inner.class)); assertThat(expected).hasMessageThat().contains("inner class"); }Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Mar 12 17:47:10 GMT 2026 - 47.9K bytes - Click Count (0) -
android/guava-testlib/src/com/google/common/testing/AbstractPackageSanityTests.java
if (classToTest.getSimpleName().equals("ReflectionFreeAssertThrows")) { /* * These classes handle null properly but throw IllegalArgumentException for the default * Class argument that this test uses. Normally we'd fix that by declaring a * ReflectionFreeAssertThrowsTest with a testNulls method, but that's annoying to have to do
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Apr 02 14:49:41 GMT 2026 - 17.9K bytes - Click Count (0) -
guava-tests/test/com/google/common/primitives/ImmutableLongArrayTest.java
builder.add(5L); ImmutableLongArray array = builder.build(); assertThat(array.asList()).containsExactly(5L); } public void testBuilder_presize_negative() { assertThrows(IllegalArgumentException.class, () -> ImmutableLongArray.builder(-1)); } /** * If there's a bug in builder growth, we wouldn't know how to expose it. So, brute force the hell * out of it for a while and see what happens.
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Dec 12 14:49:24 GMT 2025 - 20.9K bytes - Click Count (0) -
guava-tests/test/com/google/common/util/concurrent/AbstractClosingFutureTest.java
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 16 22:45:21 GMT 2026 - 63K bytes - Click Count (0) -
src/main/java/jcifs/smb1/UniAddress.java
* <code>NbtAddress</code>. * * @param addr the address to wrap */ public UniAddress(final Object addr) { if (addr == null) { throw new IllegalArgumentException(); } this.addr = addr; } /** * Return the IP address of this address as a 32 bit integer. */ @Override public int hashCode() {
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 17K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/reflect/TypeTokenSubtypeTest.java
public void testGetSubtypeOf_impossibleWildcard() { TypeToken<List<? extends Number>> numberList = new TypeToken<List<? extends Number>>() {}; abstract class StringList implements List<String> {} assertThrows(IllegalArgumentException.class, () -> numberList.getSubtype(StringList.class)); } private static class OwnerTypeSubtypingTests extends SubtypeTester { @TestSubtype public Mall<Outdoor>.Shop<Electronics> innerTypeIsSubtype(
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Dec 19 18:03:30 GMT 2024 - 20.4K bytes - Click Count (0) -
guava-tests/test/com/google/common/primitives/ImmutableIntArrayTest.java
builder.add(5); ImmutableIntArray array = builder.build(); assertThat(array.asList()).containsExactly(5); } public void testBuilder_presize_negative() { assertThrows(IllegalArgumentException.class, () -> ImmutableIntArray.builder(-1)); } /** * If there's a bug in builder growth, we wouldn't know how to expose it. So, brute force the hell * out of it for a while and see what happens.
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Dec 12 14:49:24 GMT 2025 - 20.6K bytes - Click Count (0) -
api/maven-api-core/src/main/java/org/apache/maven/api/services/DependencyResolverRequest.java
this.targetVersion = targetVersion; this.repositories = validate(repositories); if (verbose && requestType != RequestType.COLLECT) { throw new IllegalArgumentException("verbose cannot only be true when collecting dependencies"); } } @Nonnull @Override public RequestType getRequestType() {Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Fri Oct 10 07:30:49 GMT 2025 - 23K bytes - Click Count (0) -
okhttp/src/jvmTest/kotlin/okhttp3/internal/ws/RealWebSocketTest.kt
assertThat(client.webSocket!!.close(1000, "Hello!")).isFalse() assertThat(client.webSocket!!.send("Hello!")).isFalse() } @Test fun clientCloseWith0Fails() { assertFailsWith<IllegalArgumentException> { client.webSocket!!.close(0, null) }.also { expected -> assertThat("Code must be in range [1000,5000): 0") .isEqualTo(expected.message) } } @Test
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Thu Jul 31 04:18:40 GMT 2025 - 18.7K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/primitives/ImmutableDoubleArrayTest.java
builder.add(5.0); ImmutableDoubleArray array = builder.build(); assertThat(array.asList()).containsExactly(5.0); } public void testBuilder_presize_negative() { assertThrows(IllegalArgumentException.class, () -> ImmutableDoubleArray.builder(-1)); } /** * If there's a bug in builder growth, we wouldn't know how to expose it. So, brute force the hell * out of it for a while and see what happens.
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Aug 07 16:05:33 GMT 2025 - 21.5K bytes - Click Count (0)