- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 136 for assertThrows (0.31 sec)
-
guava-tests/test/com/google/common/graph/AbstractStandardUndirectedNetworkTest.java
UnsupportedOperationException e = assertThrows(UnsupportedOperationException.class, () -> nodes.add(N2)); addNode(N1); assertThat(network.nodes()).containsExactlyElementsIn(nodes); } @Override @Test public void edges_checkReturnedSetMutability() { Set<String> edges = network.edges(); UnsupportedOperationException e = assertThrows(UnsupportedOperationException.class, () -> edges.add(E12));
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Wed Sep 06 17:04:31 GMT 2023 - 19.3K bytes - Viewed (0) -
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 Apr 19 12:43:09 GMT 2024 - Last Modified: Wed Sep 06 17:04:31 GMT 2023 - 21.6K 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());
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Wed Sep 06 17:04:31 GMT 2023 - 16.1K bytes - Viewed (1) -
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 Apr 12 12:43:09 GMT 2024 - Last Modified: Wed Sep 06 17:04:31 GMT 2023 - 16.4K bytes - Viewed (0) -
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 Apr 19 12:43:09 GMT 2024 - Last Modified: Mon Jan 22 17:29:38 GMT 2024 - 16.6K bytes - Viewed (0) -
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 Apr 19 12:43:09 GMT 2024 - Last Modified: Wed Sep 06 17:04:31 GMT 2023 - 21.9K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/cache/CacheBuilderTest.java
assertThrows(IllegalArgumentException.class, () -> builder.maximumWeight(-1)); } @GwtIncompatible // maximumWeight public void testMaximumWeight_setTwice() { CacheBuilder<Object, Object> builder = CacheBuilder.newBuilder().maximumWeight(16); assertThrows(IllegalStateException.class, () -> builder.maximumWeight(16));
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Tue Oct 03 20:10:02 GMT 2023 - 23.2K bytes - Viewed (0) -
android/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"));
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Wed Sep 06 17:04:31 GMT 2023 - 31.9K 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(
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Wed Sep 06 17:04:31 GMT 2023 - 11.5K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/graph/ValueGraphTest.java
graph.putEdgeValue(1, 2, "A"); IllegalArgumentException e = assertThrows( IllegalArgumentException.class, () -> graph.edgeValueOrDefault(EndpointPair.unordered(1, 2), "default")); assertThat(e).hasMessageThat().contains(ENDPOINTS_MISMATCH); e = assertThrows( IllegalArgumentException.class,
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Wed Sep 06 17:04:31 GMT 2023 - 17.4K bytes - Viewed (0)