- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 404 for UnsupportedOperationException (0.34 sec)
-
android/guava-testlib/src/com/google/common/testing/NullPointerTester.java
/** * Exceptions should be {@link NullPointerException} or {@link UnsupportedOperationException}. */ NPE_OR_UOE() { @Override public boolean isExpectedType(Throwable cause) { return cause instanceof NullPointerException || cause instanceof UnsupportedOperationException; } }, /**
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Thu Nov 16 15:12:31 GMT 2023 - 22.8K bytes - Viewed (0) -
android/guava/src/com/google/common/reflect/MutableTypeToInstanceMap.java
* * @deprecated unsupported operation * @throws UnsupportedOperationException always */ @CanIgnoreReturnValue @Deprecated @Override @DoNotCall("Always throws UnsupportedOperationException") @CheckForNull public B put(TypeToken<? extends @NonNull B> key, @ParametricNullness B value) { throw new UnsupportedOperationException("Please use putInstance() instead."); } /**
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Sat Apr 22 01:15:23 GMT 2023 - 5.8K bytes - Viewed (0) -
guava/src/com/google/common/collect/ImmutableMultimap.java
throw new UnsupportedOperationException(); } /** * Guaranteed to throw an exception and leave the multimap unmodified. * * @throws UnsupportedOperationException always * @deprecated Unsupported operation. */ @CanIgnoreReturnValue @Deprecated @Override @DoNotCall("Always throws UnsupportedOperationException")
Java - Registered: Fri Apr 05 12:43:09 GMT 2024 - Last Modified: Thu Feb 22 21:19:52 GMT 2024 - 25.6K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/testers/CollectionRemoveTester.java
@CollectionSize.Require(absent = ZERO) public void testRemove_unsupported() { try { collection.remove(e0()); fail("remove(present) should throw UnsupportedOperationException"); } catch (UnsupportedOperationException expected) { } expectUnchanged(); assertTrue("remove(present) should not remove the element", collection.contains(e0())); }
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Tue Feb 20 17:00:05 GMT 2024 - 5.6K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/google/MultisetAddTester.java
@CollectionFeature.Require(absent = SUPPORTS_ADD) public void testAddUnsupported() { try { getMultiset().add(e0()); fail("Expected UnsupportedOperationException"); } catch (UnsupportedOperationException expected) { } } @CollectionFeature.Require(SUPPORTS_ADD) public void testAddMeansAddOne() { int originalCount = getMultiset().count(e0());
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Tue Jan 09 20:10:38 GMT 2018 - 4.2K bytes - Viewed (0) -
guava-tests/test/com/google/common/graph/AbstractStandardDirectedGraphTest.java
@Override @Test public void nodes_checkReturnedSetMutability() { assume().that(graphIsMutable()).isTrue(); Set<Integer> nodes = graph.nodes(); UnsupportedOperationException e = assertThrows(UnsupportedOperationException.class, () -> nodes.add(N2)); addNode(N1); assertThat(graph.nodes()).containsExactlyElementsIn(nodes); } @Override @Test
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Wed Sep 06 17:04:31 GMT 2023 - 14.1K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/AbstractImmutableTableTest.java
testInstance.clear(); fail(); } catch (UnsupportedOperationException e) { // success } } } public final void testPut() { for (Table<Character, Integer, String> testInstance : getTestInstances()) { try { testInstance.put('a', 1, "blah"); fail(); } catch (UnsupportedOperationException e) { // success } } }
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Mon Feb 19 20:34:55 GMT 2024 - 2.5K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/testers/CollectionRemoveTester.java
@CollectionSize.Require(absent = ZERO) public void testRemove_unsupported() { try { collection.remove(e0()); fail("remove(present) should throw UnsupportedOperationException"); } catch (UnsupportedOperationException expected) { } expectUnchanged(); assertTrue("remove(present) should not remove the element", collection.contains(e0())); }
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Tue Feb 20 17:00:05 GMT 2024 - 5.6K bytes - Viewed (0) -
build-logic-commons/code-quality-rules/src/main/java/gradlebuild/codenarc/rules/IntegrationTestFixturesRule.java
public int getPriority() { return 1; } @Override public void setName(String name) { throw new UnsupportedOperationException(); } @Override public void setPriority(int priority) { throw new UnsupportedOperationException(); } @Override public String getDescription() { return "Reports incorrect usages of integration test fixtures"; }
Java - Registered: Wed May 01 11:36:15 GMT 2024 - Last Modified: Wed Dec 09 08:14:05 GMT 2020 - 1.4K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/AbstractMultimapAsMapImplementsMapTest.java
multimap.put("three", 33); multimap.put("three", 333); } @Override protected String getKeyNotInPopulatedMap() throws UnsupportedOperationException { return "zero"; } @Override protected Collection<Integer> getValueNotInPopulatedMap() throws UnsupportedOperationException { return Lists.newArrayList(0); } /**
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Mon Feb 19 20:34:55 GMT 2024 - 3K bytes - Viewed (0)