- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 628 for IllegalArgumentException (0.1 sec)
-
guava-tests/test/com/google/common/math/LinearTransformationTest.java
} public void testMapping_infiniteX1() { assertThrows( IllegalArgumentException.class, () -> LinearTransformation.mapping(Double.POSITIVE_INFINITY, 3.4)); } public void testMapping_infiniteY1() { assertThrows( IllegalArgumentException.class, () -> LinearTransformation.mapping(1.2, Double.NEGATIVE_INFINITY)); }
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Dec 19 18:03:30 UTC 2024 - 7.1K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/base/PreconditionsTest.java
public void testCheckArgument_nullMessage_failure() { IllegalArgumentException expected = assertThrows(IllegalArgumentException.class, () -> checkArgument(false, null)); assertThat(expected).hasMessageThat().isEqualTo("null"); } public void testCheckArgument_nullMessageWithArgs_failure() { IllegalArgumentException e = assertThrows(IllegalArgumentException.class, () -> checkArgument(false, null, "b", "d"));
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 19K bytes - Viewed (0) -
guava-tests/test/com/google/common/base/PreconditionsTest.java
public void testCheckArgument_nullMessage_failure() { IllegalArgumentException expected = assertThrows(IllegalArgumentException.class, () -> checkArgument(false, null)); assertThat(expected).hasMessageThat().isEqualTo("null"); } public void testCheckArgument_nullMessageWithArgs_failure() { IllegalArgumentException e = assertThrows(IllegalArgumentException.class, () -> checkArgument(false, null, "b", "d"));
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 19K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/exception/InvalidQueryExceptionTest.java
assertEquals(complexMessageCode, exception.getMessageCode()); } public void test_causeChainPropagation() { // Setup - create a chain of exceptions final IllegalArgumentException rootCause = new IllegalArgumentException("Invalid character in query"); final IllegalStateException middleCause = new IllegalStateException("Query parser state error", rootCause); final String message = "Query processing failed";
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Tue Aug 19 14:09:36 UTC 2025 - 15.6K bytes - Viewed (0) -
src/main/java/jcifs/util/SecureCredentialStorage.java
if (masterPassword == null || masterPassword.length == 0) { throw new IllegalArgumentException("Master password cannot be null or empty"); } if (salt == null || salt.length != SALT_SIZE) { throw new IllegalArgumentException("Invalid salt"); } this.salt = salt.clone(); this.masterKey = deriveKey(masterPassword, this.salt);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 12.7K bytes - Viewed (0) -
guava-tests/test/com/google/common/cache/CacheBuilderSpecTest.java
assertThrows(IllegalArgumentException.class, () -> parse("weakValues=true")); } public void testParse_repeatedValueStrength() { assertThrows(IllegalArgumentException.class, () -> parse("softValues, softValues")); assertThrows(IllegalArgumentException.class, () -> parse("softValues, weakValues")); assertThrows(IllegalArgumentException.class, () -> parse("weakValues, softValues"));
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Dec 19 18:03:30 UTC 2024 - 19.1K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/HeadersTest.kt
@Test fun ofRejectsNullChar() { assertFailsWith<IllegalArgumentException> { headersOf("User-Agent", "Square\u0000OkHttp") } } @Test fun ofMapThrowsOnEmptyName() { assertFailsWith<IllegalArgumentException> { mapOf("" to "OkHttp").toHeaders() } } @Test fun ofMapThrowsOnBlankName() { assertFailsWith<IllegalArgumentException> { mapOf(" " to "OkHttp").toHeaders() } }
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Wed Mar 19 19:25:20 UTC 2025 - 8.7K bytes - Viewed (0) -
src/test/java/jcifs/smb/StaticJAASConfigurationTest.java
} @Test @DisplayName("Null options cause IllegalArgumentException when retrieving entries (JAAS requires non-null options)") void nullOptions_throwOnAccess() { // Arrange StaticJAASConfiguration cfg = new StaticJAASConfiguration(null); // Act + Assert assertThrows(IllegalArgumentException.class, () -> cfg.getAppConfigurationEntry("any"),Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 7K bytes - Viewed (0) -
guava-tests/test/com/google/common/graph/AbstractStandardDirectedNetworkTest.java
assume().that(graphIsMutable()).isTrue(); addEdge(N1, N2, E12); IllegalArgumentException e = assertThrows( IllegalArgumentException.class, () -> networkAsMutableNetwork.addEdge(N4, N5, E12)); assertThat(e).hasMessageThat().contains(ERROR_REUSE_EDGE); e = assertThrows(IllegalArgumentException.class, () -> addEdge(N2, N1, E12)); assertThat(e).hasMessageThat().contains(ERROR_REUSE_EDGE);
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Dec 19 18:03:30 UTC 2024 - 21.3K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/cache/CacheBuilderSpecTest.java
assertThrows(IllegalArgumentException.class, () -> parse("weakValues=true")); } public void testParse_repeatedValueStrength() { assertThrows(IllegalArgumentException.class, () -> parse("softValues, softValues")); assertThrows(IllegalArgumentException.class, () -> parse("softValues, weakValues")); assertThrows(IllegalArgumentException.class, () -> parse("weakValues, softValues"));
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Dec 19 18:03:30 UTC 2024 - 19.1K bytes - Viewed (0)