- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 456 for assertThrows (0.05 sec)
-
guava-testlib/test/com/google/common/collect/testing/MinimalIterableTest.java
assertThrows(NoSuchElementException.class, () -> iterator.next()); assertThrows(IllegalStateException.class, () -> iterable.iterator()); } public void testFrom_one() { Iterable<String> iterable = MinimalIterable.from(singleton("a")); Iterator<String> iterator = iterable.iterator(); assertTrue(iterator.hasNext()); assertEquals("a", iterator.next());
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 2.6K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/math/PairedStatsAccumulatorTest.java
} public void testSampleCovariance() { assertThrows(IllegalStateException.class, () -> emptyAccumulator.sampleCovariance()); assertThrows( IllegalStateException.class, () -> emptyAccumulatorByAddAllEmptyPairedStats.sampleCovariance()); assertThrows(IllegalStateException.class, () -> oneValueAccumulator.sampleCovariance()); assertThrows( IllegalStateException.class,
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Jul 03 21:17:33 UTC 2024 - 23.3K bytes - Viewed (0) -
guava-tests/test/com/google/common/util/concurrent/CycleDetectingLockFactoryTest.java
PotentialDeadlockException expected = assertThrows(PotentialDeadlockException.class, () -> lock2.lock()); checkMessage(expected, "MyOrder.THIRD -> MyOrder.SECOND"); expected = assertThrows(PotentialDeadlockException.class, () -> lock1.lock()); checkMessage(expected, "MyOrder.THIRD -> MyOrder.FIRST"); lock3.unlock(); lock2.lock(); expected = assertThrows(PotentialDeadlockException.class, () -> lock1.lock());
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Oct 18 22:10:29 UTC 2024 - 16.1K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/util/concurrent/CycleDetectingLockFactoryTest.java
PotentialDeadlockException expected = assertThrows(PotentialDeadlockException.class, () -> lock2.lock()); checkMessage(expected, "MyOrder.THIRD -> MyOrder.SECOND"); expected = assertThrows(PotentialDeadlockException.class, () -> lock1.lock()); checkMessage(expected, "MyOrder.THIRD -> MyOrder.FIRST"); lock3.unlock(); lock2.lock(); expected = assertThrows(PotentialDeadlockException.class, () -> lock1.lock());
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Oct 18 22:10:29 UTC 2024 - 16.1K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/util/concurrent/SimpleTimeLimiterTest.java
public void testCallWithTimeout_goodCallableWithNotEnoughTime() throws Exception { assertThrows( TimeoutException.class, () -> service.callWithTimeout(GOOD_CALLABLE, NOT_ENOUGH_MS, MILLISECONDS)); } public void testCallWithTimeout_badCallableWithEnoughTime() throws Exception { ExecutionException expected = assertThrows( ExecutionException.class,
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Sep 06 17:04:31 UTC 2023 - 9.5K bytes - Viewed (0) -
guava-tests/test/com/google/common/net/InetAddressesTest.java
} public void testForUriStringBad() { assertThrows(IllegalArgumentException.class, () -> InetAddresses.forUriString("")); assertThrows( IllegalArgumentException.class, () -> InetAddresses.forUriString("192.168.999.888")); assertThrows( IllegalArgumentException.class, () -> InetAddresses.forUriString("www.google.com"));
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri May 24 16:44:05 UTC 2024 - 35.3K bytes - Viewed (0) -
android/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 Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Oct 18 22:10:29 UTC 2024 - 7.3K bytes - Viewed (0) -
guava-tests/test/com/google/common/math/StatsTest.java
} public void testSampleVariance() { assertThrows(IllegalStateException.class, () -> EMPTY_STATS_VARARGS.sampleVariance()); assertThrows(IllegalStateException.class, () -> EMPTY_STATS_ITERABLE.sampleVariance()); assertThrows(IllegalStateException.class, () -> ONE_VALUE_STATS.sampleVariance()); assertThat(TWO_VALUES_STATS.sampleVariance())
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 23 16:45:30 UTC 2024 - 33.3K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/ImmutableListTest.java
} public void testBuilderAddHandlesNullsCorrectly() { ImmutableList.Builder<String> builder = ImmutableList.builder(); assertThrows(NullPointerException.class, () -> builder.add((String) null)); assertThrows(NullPointerException.class, () -> builder.add((String[]) null)); assertThrows(NullPointerException.class, () -> builder.add("a", null, "b")); } public void testBuilderAddAllHandlesNullsCorrectly() {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 24.1K bytes - Viewed (0) -
guava-tests/test/com/google/common/reflect/MutableTypeToInstanceMapTest.java
map = new MutableTypeToInstanceMap<>(); } public void testPutThrows() { assertThrows( UnsupportedOperationException.class, () -> map.put(TypeToken.of(Integer.class), Integer.valueOf(5))); } public void testPutAllThrows() { assertThrows( UnsupportedOperationException.class,
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Thu Feb 22 17:15:24 UTC 2024 - 7.9K bytes - Viewed (0)