- Sort Score
- Result 10 results
- Languages All
Results 91 - 100 of 673 for assertThrows (0.49 sec)
-
guava-tests/test/com/google/common/util/concurrent/SettableFutureTest.java
*/ package com.google.common.util.concurrent; import static com.google.common.truth.Truth.assertThat; import static java.util.concurrent.TimeUnit.MILLISECONDS; import static org.junit.Assert.assertThrows; import java.util.concurrent.CancellationException; import java.util.concurrent.ExecutionException; import java.util.concurrent.TimeoutException; import junit.framework.TestCase;
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Mon Sep 22 17:49:12 UTC 2025 - 7.3K bytes - Viewed (0) -
compat/maven-model-builder/src/test/java/org/apache/maven/model/building/DefaultModelBuilderTest.java
import org.apache.maven.model.resolution.UnresolvableModelException; import org.junit.jupiter.api.Test; import static org.junit.jupiter.api.Assertions.assertNotNull; import static org.junit.jupiter.api.Assertions.assertThrows; /** */ @Deprecated public class DefaultModelBuilderTest { private static final String BASE1_ID = "thegroup:base1:pom"; private static final String BASE1_ID2 = "thegroup:base1:1";Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Fri Mar 21 04:56:21 UTC 2025 - 5.2K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/util/concurrent/AtomicsTest.java
for (int i = 0; i < length; ++i) { assertEquals(null, refArray.get(i)); } assertThrows(IndexOutOfBoundsException.class, () -> refArray.get(length)); } public void testNewReferenceArray_withNegativeLength() throws Exception { assertThrows(NegativeArraySizeException.class, () -> Atomics.newReferenceArray(-1)); }
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Thu Dec 19 18:03:30 UTC 2024 - 2.6K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/IteratorsTest.java
assertEquals(-1, iterator.previousIndex()); assertThrows(NoSuchElementException.class, () -> iterator.next()); assertThrows(NoSuchElementException.class, () -> iterator.previous()); assertThrows(UnsupportedOperationException.class, () -> iterator.remove()); assertThrows(UnsupportedOperationException.class, () -> iterator.set("a")); assertThrows(UnsupportedOperationException.class, () -> iterator.add("a")); }
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Tue Oct 28 18:44:53 UTC 2025 - 56.7K bytes - Viewed (0) -
guava-tests/test/com/google/common/cache/EmptyCachesTest.java
Set<Object> keys = cache.asMap().keySet(); assertThrows(NullPointerException.class, () -> keys.toArray((Object[]) null)); checkEmpty(cache); } } public void testKeySet_addNotSupported() { for (LoadingCache<Object, Object> cache : caches()) { assertThrows(UnsupportedOperationException.class, () -> cache.asMap().keySet().add(1)); assertThrows(
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Tue Sep 30 22:03:28 UTC 2025 - 11.9K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/cache/EmptyCachesTest.java
Set<Object> keys = cache.asMap().keySet(); assertThrows(NullPointerException.class, () -> keys.toArray((Object[]) null)); checkEmpty(cache); } } public void testKeySet_addNotSupported() { for (LoadingCache<Object, Object> cache : caches()) { assertThrows(UnsupportedOperationException.class, () -> cache.asMap().keySet().add(1)); assertThrows(
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Tue Sep 30 22:03:28 UTC 2025 - 11.9K bytes - Viewed (0) -
guava-tests/test/com/google/common/math/QuantilesTest.java
public void testScale_zero() { assertThrows(IllegalArgumentException.class, () -> Quantiles.scale(0)); } public void testScale_negative() { assertThrows(IllegalArgumentException.class, () -> Quantiles.scale(-4)); } public void testScale_index_negative() { Quantiles.Scale intermediate = Quantiles.scale(10); assertThrows(IllegalArgumentException.class, () -> intermediate.index(-1));
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Thu Dec 11 20:45:32 UTC 2025 - 29.8K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/math/QuantilesTest.java
public void testScale_zero() { assertThrows(IllegalArgumentException.class, () -> Quantiles.scale(0)); } public void testScale_negative() { assertThrows(IllegalArgumentException.class, () -> Quantiles.scale(-4)); } public void testScale_index_negative() { Quantiles.Scale intermediate = Quantiles.scale(10); assertThrows(IllegalArgumentException.class, () -> intermediate.index(-1));
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Thu Dec 11 20:45:32 UTC 2025 - 29.8K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/ImmutableListMultimapTest.java
ImmutableListMultimap.Builder<String, Integer> builder = ImmutableListMultimap.builder(); assertThrows(NullPointerException.class, () -> builder.put(null, 1)); assertThrows(NullPointerException.class, () -> builder.putAll(null, Arrays.asList(1, 2, 3))); assertThrows(NullPointerException.class, () -> builder.putAll(null, 1, 2, 3)); assertThrows( NullPointerException.class, () -> builder.putAll((Multimap<String, Integer>) toPut));
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 24K bytes - Viewed (0) -
guava-tests/test/com/google/common/math/IntMathTest.java
assertThrows(IllegalArgumentException.class, () -> IntMath.gcd(a, 3)); assertThrows(IllegalArgumentException.class, () -> IntMath.gcd(3, a)); } } public void testGCDNegativeZeroThrows() { for (int a : NEGATIVE_INTEGER_CANDIDATES) { assertThrows(IllegalArgumentException.class, () -> IntMath.gcd(a, 0));
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Mon Aug 11 19:31:30 UTC 2025 - 24.1K bytes - Viewed (0)