- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 135 for assertThrows (0.41 sec)
-
android/guava-tests/test/com/google/common/util/concurrent/FuturesGetCheckedTest.java
SettableFuture<String> future = SettableFuture.create(); future.cancel(true); assertThrows( CancellationException.class, () -> getChecked(future, TwoArgConstructorException.class)); } public void testGetCheckedUntimed_ExecutionExceptionChecked() { TwoArgConstructorException expected = assertThrows( TwoArgConstructorException.class,
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Wed Sep 06 17:04:31 GMT 2023 - 16.4K bytes - Viewed (0) -
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,
Java - Registered: Fri Apr 12 12:43:09 GMT 2024 - Last Modified: Wed Sep 06 17:04:31 GMT 2023 - 23.4K bytes - Viewed (0) -
guava-tests/test/com/google/common/cache/CacheBuilderSpecTest.java
public void testParse_weakValuesCannotHaveValue() { assertThrows(IllegalArgumentException.class, () -> parse("weakValues=true")); } public void testParse_repeatedValueStrength() { assertThrows(IllegalArgumentException.class, () -> parse("softValues, softValues")); assertThrows(IllegalArgumentException.class, () -> parse("softValues, weakValues"));
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Wed Sep 06 17:04:31 GMT 2023 - 19.2K 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,
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Wed Sep 06 17:04:31 GMT 2023 - 23.4K bytes - Viewed (0) -
guava-tests/test/com/google/common/math/PairedStatsTest.java
} public void testPearsonsCorrelationCoefficient() { assertThrows( IllegalStateException.class, () -> EMPTY_PAIRED_STATS.pearsonsCorrelationCoefficient()); assertThrows( IllegalStateException.class, () -> ONE_VALUE_PAIRED_STATS.pearsonsCorrelationCoefficient()); assertThrows( IllegalStateException.class,
Java - Registered: Fri Apr 12 12:43:09 GMT 2024 - Last Modified: Wed Sep 06 17:04:31 GMT 2023 - 14K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/math/PairedStatsTest.java
} public void testPearsonsCorrelationCoefficient() { assertThrows( IllegalStateException.class, () -> EMPTY_PAIRED_STATS.pearsonsCorrelationCoefficient()); assertThrows( IllegalStateException.class, () -> ONE_VALUE_PAIRED_STATS.pearsonsCorrelationCoefficient()); assertThrows( IllegalStateException.class,
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Wed Sep 06 17:04:31 GMT 2023 - 14K bytes - Viewed (0) -
android/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); }
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Wed Sep 06 17:04:31 GMT 2023 - 21.2K 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());
Java - Registered: Fri Apr 12 12:43:09 GMT 2024 - Last Modified: Wed Sep 06 17:04:31 GMT 2023 - 16.1K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/io/ByteStreamsTest.java
assertThrows(NullPointerException.class, () -> nos.write(null)); assertThrows(NullPointerException.class, () -> nos.write(null, 0, 1)); byte[] tenBytes = new byte[10]; assertThrows(IndexOutOfBoundsException.class, () -> nos.write(tenBytes, -1, 1)); assertThrows(IndexOutOfBoundsException.class, () -> nos.write(tenBytes, 1, -1));
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Wed Sep 06 17:04:31 GMT 2023 - 21.9K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/graph/AbstractGraphTest.java
assertThrows(IllegalStateException.class, n1AdjacentNodes::size)); assertNodeRemovedFromGraphErrorMessage( assertThrows(IllegalStateException.class, n1Predecessors::size)); assertNodeRemovedFromGraphErrorMessage( assertThrows(IllegalStateException.class, n1Successors::size)); assertNodeRemovedFromGraphErrorMessage(
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Mon Jan 22 17:29:38 GMT 2024 - 16.6K bytes - Viewed (0)