- Sort Score
- Result 10 results
- Languages All
Results 111 - 120 of 651 for assertThrows (0.13 sec)
-
guava-tests/test/com/google/common/graph/AbstractStandardUndirectedGraphTest.java
assertThrows(UnsupportedOperationException.class, () -> successors.add(N2)); putEdge(N1, N2); assertThat(graph.successors(N1)).containsExactlyElementsIn(successors); } @Override @Test public void incidentEdges_checkReturnedSetMutability() { assume().that(graphIsMutable()).isTrue(); addNode(N1); Set<EndpointPair<Integer>> incidentEdges = graph.incidentEdges(N1); assertThrows(
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Dec 19 18:03:30 UTC 2024 - 12.7K 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 Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Dec 19 18:03:30 UTC 2024 - 23.4K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/util/concurrent/RateLimiterTest.java
assertThrows(IllegalArgumentException.class, () -> limiter.acquire(-1)); assertThrows(IllegalArgumentException.class, () -> limiter.tryAcquire(0)); assertThrows(IllegalArgumentException.class, () -> limiter.tryAcquire(-1)); assertThrows(IllegalArgumentException.class, () -> limiter.tryAcquire(0, 1, SECONDS)); assertThrows(IllegalArgumentException.class, () -> limiter.tryAcquire(-1, 1, SECONDS)); } public void testSimpleWithWait() {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Mon Aug 11 19:31:30 UTC 2025 - 21.9K bytes - Viewed (0) -
guava-tests/test/com/google/common/util/concurrent/RateLimiterTest.java
assertThrows(IllegalArgumentException.class, () -> limiter.acquire(-1)); assertThrows(IllegalArgumentException.class, () -> limiter.tryAcquire(0)); assertThrows(IllegalArgumentException.class, () -> limiter.tryAcquire(-1)); assertThrows(IllegalArgumentException.class, () -> limiter.tryAcquire(0, 1, SECONDS)); assertThrows(IllegalArgumentException.class, () -> limiter.tryAcquire(-1, 1, SECONDS)); } public void testSimpleWithWait() {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Mon Aug 11 19:31:30 UTC 2025 - 21.9K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/lease/Smb2LeaseKeyTest.java
@DisplayName("Should reject null key") void testNullKey() { assertThrows(IllegalArgumentException.class, () -> new Smb2LeaseKey(null)); } @Test @DisplayName("Should reject wrong size key") void testWrongSizeKey() { assertThrows(IllegalArgumentException.class, () -> new Smb2LeaseKey(new byte[15])); assertThrows(IllegalArgumentException.class, () -> new Smb2LeaseKey(new byte[17]));Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 21 00:16:17 UTC 2025 - 6K bytes - Viewed (0) -
src/test/java/jcifs/smb/compression/DefaultCompressionServiceTest.java
public void testUnsupportedAlgorithmCompression() { assertThrows(CIFSException.class, () -> { compressionService.compress(testData, CompressionService.COMPRESSION_LZNT1); }); } @Test @DisplayName("Test unsupported algorithm decompression") public void testUnsupportedAlgorithmDecompression() { assertThrows(CIFSException.class, () -> {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 9.1K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/testers/MapPutTester.java
assertThrows( ConcurrentModificationException.class, () -> { Iterator<V> iterator = getMap().values().iterator(); put(e3()); iterator.next(); }); } @MapFeature.Require(absent = SUPPORTS_PUT) public void testPut_unsupportedNotPresent() { assertThrows(UnsupportedOperationException.class, () -> put(e3()));Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 9.1K 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 Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Dec 19 18:03:30 UTC 2024 - 2.6K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/testers/ConcurrentMapPutIfAbsentTester.java
import static com.google.common.collect.testing.features.MapFeature.SUPPORTS_PUT; import static com.google.common.collect.testing.testers.ReflectionFreeAssertThrows.assertThrows; import com.google.common.annotations.GwtCompatible; import com.google.common.collect.testing.AbstractMapTester; import com.google.common.collect.testing.features.CollectionSize;
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sat Dec 21 14:50:24 UTC 2024 - 4.9K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/io/CharSinkTest.java
TestCharSink failSink = new TestCharSink(WRITE_THROWS); assertThrows(IOException.class, () -> new TestCharSource(STRING).copyTo(failSink)); assertTrue(failSink.wasStreamClosed()); } public void testClosesOnErrors_whenWritingFromReaderThatThrows() { TestCharSink okSink = new TestCharSink(); assertThrows(IOException.class, () -> okSink.writeFrom(new TestReader(READ_THROWS)));
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Dec 19 18:03:30 UTC 2024 - 4.6K bytes - Viewed (0)