- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 335 for IllegalArgumentException (0.07 sec)
-
okhttp-tls/src/test/java/okhttp3/tls/HeldCertificateTest.kt
""".trimMargin() try { decode(certificatePem) fail<Any>() } catch (expected: IllegalArgumentException) { assertThat(expected.message).isEqualTo("string does not include a private key") } try { decode(pkcs8Pem) fail<Any>() } catch (expected: IllegalArgumentException) { assertThat(expected.message).isEqualTo("string does not include a certificate") } try {
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Wed Mar 19 19:25:20 UTC 2025 - 22.6K bytes - Viewed (0) -
src/test/java/jcifs/dcerpc/UUIDTest.java
void testConstructorWithStringInvalidCharacter() { // Arrange String invalidUuid = "00112233-4455-6677-8899-AABBCCDDEXX"; // 'X' is invalid // Act & Assert assertThrows(IllegalArgumentException.class, () -> new UUID(invalidUuid), "Should throw IllegalArgumentException for invalid character in UUID string");
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 13.2K bytes - Viewed (0) -
src/test/java/jcifs/smb1/util/transport/TransportExceptionTest.java
} @Test @DisplayName("Should create exception with root cause") void testConstructorWithRootCause() { Exception rootCause = new IllegalArgumentException("Root cause exception"); TransportException exception = new TransportException(rootCause); assertNotNull(exception); assertNull(exception.getMessage());Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.5K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/trans2/Trans2QueryPathInformationTest.java
} @Test void testMapInformationLevelWithInvalidLevel() { // Test invalid information level IllegalArgumentException exception = assertThrows(IllegalArgumentException.class, () -> Trans2QueryPathInformation.mapInformationLevel(999)); assertTrue(exception.getMessage().contains("Unsupported information level")); } @TestRegistered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 12.4K bytes - Viewed (0) -
src/test/java/jcifs/util/SimpleCircuitBreakerTest.java
@DisplayName("Test invalid configuration") void testInvalidConfiguration() { assertThrows(IllegalArgumentException.class, () -> new SimpleCircuitBreaker("invalid", 0, 2, 100)); assertThrows(IllegalArgumentException.class, () -> new SimpleCircuitBreaker("invalid", 3, 0, 100)); assertThrows(IllegalArgumentException.class, () -> new SimpleCircuitBreaker("invalid", 3, 2, -1)); } @TestRegistered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 10.6K bytes - Viewed (0) -
api/maven-api-core/src/main/java/org/apache/maven/api/services/ProjectManager.java
* then the behavior depends on the {@code ProjectManager} implementation. * It may do nothing or thrown {@linkplain IllegalArgumentException}. * * @param project the project to update * @param source the source to add * @throws IllegalArgumentException if this project manager rejects the given source because of conflict * * @see #getSourceRoots(Project) */Registered: Sun Sep 07 03:35:12 UTC 2025 - Last Modified: Thu Jan 30 23:29:13 UTC 2025 - 12K bytes - Viewed (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/CertificatePinner.kt
} this.pattern = pattern.toCanonicalHost() ?: throw IllegalArgumentException("Invalid pattern: $pattern") when { pin.startsWith("sha1/") -> { this.hashAlgorithm = "sha1" this.hash = pin.substring("sha1/".length).decodeBase64() ?: throw IllegalArgumentException("Invalid pin hash: $pin") } pin.startsWith("sha256/") -> {Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Wed Mar 19 19:25:20 UTC 2025 - 14.1K bytes - Viewed (1) -
src/test/java/jcifs/util/InputValidatorTest.java
assertThrows(IllegalArgumentException.class, () -> InputValidator.validateArrayBounds(null, 0, dst, 0, 10)); assertThrows(IllegalArgumentException.class, () -> InputValidator.validateArrayBounds(src, 0, null, 0, 10)); assertThrows(IllegalArgumentException.class, () -> InputValidator.validateArrayBounds(src, -1, dst, 0, 10));Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 11.9K bytes - Viewed (0) -
src/main/java/jcifs/util/InputValidator.java
* @throws IllegalArgumentException if size is invalid */ public static void validateBufferSize(int size, int maxSize, String fieldName) { if (size < 0) { throw new IllegalArgumentException(fieldName + " size cannot be negative: " + size); } if (size > maxSize) {Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 13.5K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/FeatureSpecificTestSuiteBuilder.java
/** Configures this builder produce a TestSuite with the given name. */ @CanIgnoreReturnValue public B named(String name) { if (name.contains("(")) { throw new IllegalArgumentException( "Eclipse hides all characters after " + "'('; please use '[]' or other characters instead of parentheses"); } this.name = name; return self(); }
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sun Dec 22 03:38:46 UTC 2024 - 10.4K bytes - Viewed (0)