- Sort Score
- Num 10 results
- Language All
Results 251 - 260 of 362 for UnsupportedOperationException (0.13 seconds)
The search processing time has exceeded the limit. The displayed results may be partial.
-
guava-testlib/src/com/google/common/collect/testing/google/MultimapClearTester.java
@CollectionSize.Require(absent = ZERO) @MapFeature.Require(absent = SUPPORTS_REMOVE) public void testClearUnsupported() { assertThrows(UnsupportedOperationException.class, () -> multimap().clear()); } // Empty multimaps *do* have defined equals semantics. @SuppressWarnings("UndefinedEquals") private void assertCleared() { assertEquals(0, multimap().size());
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Wed Feb 12 21:10:54 GMT 2025 - 4.3K bytes - Click Count (0) -
guava-testlib/test/com/google/common/testing/ClassSanityTesterTest.java
public Object badIgnored() { return new BadEquals(); } // primitive ignored public int returnsInt() { throw new UnsupportedOperationException(); } // void ignored public void voidMethod() { throw new UnsupportedOperationException(); } // non-public method ignored static Object badButNotPublic() { return new BadEquals(); } }
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Mar 12 17:47:10 GMT 2026 - 36.3K bytes - Click Count (0) -
android/guava-testlib/src/com/google/common/collect/testing/testers/ListRemoveAtIndexTester.java
@ListFeature.Require(absent = SUPPORTS_REMOVE_WITH_INDEX) @CollectionSize.Require(absent = ZERO) public void testRemoveAtIndex_unsupported() { assertThrows(UnsupportedOperationException.class, () -> getList().remove(0)); expectUnchanged(); } @ListFeature.Require(SUPPORTS_REMOVE_WITH_INDEX) public void testRemoveAtIndex_negative() {
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Nov 14 23:40:07 GMT 2024 - 4K bytes - Click Count (0) -
android/guava/src/com/google/common/collect/Maps.java
return set; } @Override public boolean add(@ParametricNullness E element) { throw new UnsupportedOperationException(); } @Override public boolean addAll(Collection<? extends E> es) { throw new UnsupportedOperationException(); } }; } private static <E extends @Nullable Object> SortedSet<E> removeOnlySortedSet(SortedSet<E> set) {Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Wed Apr 01 17:27:13 GMT 2026 - 157.6K bytes - Click Count (0) -
src/test/java/jcifs/tests/persistent/HandleReconnectorTest.java
// Create a test reconnector that exposes the protected method TestHandleReconnector testReconnector = new TestHandleReconnector(mockManager, true); assertThrows(UnsupportedOperationException.class, () -> { testReconnector.testCreateReconnectionRequest(testHandle); }); } /** * Test implementation of HandleReconnector that allows controlling success/failureCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 21 04:51:33 GMT 2025 - 5.6K bytes - Click Count (0) -
guava-tests/test/com/google/common/base/ThrowablesTest.java
assertThat(Iterables.getOnlyElement(getCausalChain(sue))).isSameInstanceAs(sue); List<Throwable> causes = getCausalChain(ex); assertThrows(UnsupportedOperationException.class, () -> causes.add(new RuntimeException())); } public void testGetCasualChainNull() { assertThrows(NullPointerException.class, () -> getCausalChain(null)); }
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Mar 13 13:01:07 GMT 2026 - 15K bytes - Click Count (0) -
android/guava-testlib/src/com/google/common/collect/testing/testers/ConcurrentMapReplaceTester.java
} expectUnchanged(); } @MapFeature.Require(absent = SUPPORTS_PUT) @CollectionSize.Require(absent = ZERO) public void testReplace_unsupportedPresent() { assertThrows(UnsupportedOperationException.class, () -> getMap().replace(k0(), v3())); expectUnchanged(); }Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sat Dec 21 14:50:24 GMT 2024 - 3.9K bytes - Click Count (0) -
guava-testlib/src/com/google/common/collect/testing/testers/ListAddTester.java
/* * absent = ZERO isn't required, since unmodList.add() must * throw regardless, but it keeps the method name accurate. */ public void testAdd_unsupportedPresent() { assertThrows(UnsupportedOperationException.class, () -> getList().add(e0())); } @CollectionFeature.Require(value = {SUPPORTS_ADD, ALLOWS_NULL_VALUES}) @CollectionSize.Require(absent = ZERO) public void testAdd_supportedNullPresent() {
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Aug 07 16:05:33 GMT 2025 - 3.4K bytes - Click Count (0) -
android/guava/src/com/google/common/reflect/Types.java
* {@link TypeVariableImpl}, the proxy calls the same method on its instance of {@code * TypeVariableImpl}. Otherwise it throws {@link UnsupportedOperationException}; this should only * apply to {@code getAnnotatedBounds()}. This does mean that users on Java who obtain an instance * of {@code TypeVariable} from {@link TypeResolver#resolveType} will not be able to call {@codeCreated: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Oct 31 19:34:24 GMT 2025 - 24.3K bytes - Click Count (0) -
android/guava/src/com/google/common/graph/AbstractBaseGraph.java
} @Override public int size() { return Ints.saturatedCast(edgeCount()); } @Override public boolean remove(@Nullable Object o) { throw new UnsupportedOperationException(); } // Mostly safe: We check contains(u) before calling successors(u), so we perform unsafe // operations only in weird cases like checking for an EndpointPair<ArrayList> in aCreated: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Oct 07 15:57:03 GMT 2025 - 11.5K bytes - Click Count (0)