- Sort Score
- Num 10 results
- Language All
Results 361 - 370 of 863 for IllegalArgumentException (0.32 seconds)
-
src/test/java/org/codelibs/fess/exception/ThumbnailGenerationExceptionTest.java
assertTrue(exception.getStackTrace().length > 0); } @Test public void test_multipleNestedExceptions() { // Test with multiple nested exceptions Exception innerCause = new IllegalArgumentException("Invalid image format"); Exception middleCause = new RuntimeException("Processing failed", innerCause);
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Sun Jan 11 08:43:05 GMT 2026 - 10.3K bytes - Click Count (0) -
impl/maven-cli/src/test/java/org/apache/maven/cling/transfer/FileSizeFormatTest.java
long negativeProgressedSize = -100L; assertThrows(IllegalArgumentException.class, () -> format.formatProgress(negativeProgressedSize, 10L)); } @Test void testNegativeProgressedSizeBiggerThanSize() { FileSizeFormat format = new FileSizeFormat(); assertThrows(IllegalArgumentException.class, () -> format.formatProgress(100L, 10L)); }Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Fri Mar 21 04:56:21 GMT 2025 - 14.9K bytes - Click Count (0) -
build-logic/build-update-utils/src/main/kotlin/gradlebuild.root-target-runtimes.gradle.kts
Created: Wed Apr 01 11:36:16 GMT 2026 - Last Modified: Wed Mar 11 22:40:18 GMT 2026 - 2.2K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/reflect/TypeParameterTest.java
.getTypeParameters()[0]; assertEquals(expected, variable); } public void testConcreteTypeRejected() { assertThrows(IllegalArgumentException.class, () -> new TypeParameter<String>() {}); } public <A, B> void testEquals() throws Exception { Method method = TypeParameterTest.class.getDeclaredMethod("testEquals"); new EqualsTester()
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Dec 19 18:03:30 GMT 2024 - 1.9K bytes - Click Count (0) -
guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/MapMaker.java
private int initialCapacity = 16; public MapMaker() {} @CanIgnoreReturnValue public MapMaker initialCapacity(int initialCapacity) { if (initialCapacity < 0) { throw new IllegalArgumentException(); } this.initialCapacity = initialCapacity; return this; } @CanIgnoreReturnValue public MapMaker concurrencyLevel(int concurrencyLevel) { checkArgument(
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sat Dec 21 03:10:51 GMT 2024 - 1.6K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/reflect/ReflectionTest.java
assertThat(runnable.toString()).isEqualTo("x"); } public void testNewProxyCantWorkOnAClass() throws Exception { assertThrows( IllegalArgumentException.class, () -> Reflection.newProxy(Object.class, X_RETURNER)); } private static final InvocationHandler X_RETURNER = new InvocationHandler() { @Override
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Mar 12 17:47:10 GMT 2026 - 2.8K bytes - Click Count (0) -
android/guava/src/com/google/common/collect/HashMultiset.java
} /** * Creates a new, empty {@code HashMultiset} with the specified expected number of distinct * elements. * * @param distinctElements the expected number of distinct elements * @throws IllegalArgumentException if {@code distinctElements} is negative */ public static <E extends @Nullable Object> HashMultiset<E> create(int distinctElements) { return new HashMultiset<>(distinctElements); } /**Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Aug 07 16:05:33 GMT 2025 - 2.5K bytes - Click Count (0) -
api/maven-api-core/src/main/java/org/apache/maven/api/services/ToolchainsBuilder.java
* @param userToolchainsSource The {@link Source} pointing to the user toolchains, must not be {@code null} * @throws ToolchainsBuilderException if the project cannot be created * @throws IllegalArgumentException if an argument is {@code null} or invalid * @see #build(ToolchainsBuilderRequest) */ @Nonnull default ToolchainsBuilderResult build( @Nonnull Session session,Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Thu Aug 22 14:47:43 GMT 2024 - 2.5K bytes - Click Count (0) -
android/guava/src/com/google/common/graph/ValueGraphBuilder.java
this.allowsSelfLoops = allowsSelfLoops; return this; } /** * Specifies the expected number of nodes in the graph. * * @throws IllegalArgumentException if {@code expectedNodeCount} is negative */ @CanIgnoreReturnValue public ValueGraphBuilder<N, V> expectedNodeCount(int expectedNodeCount) { this.expectedNodeCount = checkNonNegative(expectedNodeCount);Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Apr 02 14:49:41 GMT 2026 - 7.8K bytes - Click Count (0) -
src/test/java/jcifs/util/transport/RequestTimeoutExceptionTest.java
} @Test void testMessageAndCauseConstructor() { // Test the constructor with both message and cause arguments String message = "Test message with cause"; Throwable cause = new IllegalArgumentException("Invalid argument"); RequestTimeoutException exception = new RequestTimeoutException(message, cause); assertEquals(message, exception.getMessage(), "Message should match the provided string");Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 2.4K bytes - Click Count (0)