- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 101 for UnsupportedOperationException (0.33 sec)
-
okhttp-testing-support/src/main/kotlin/okhttp3/FakeSSLSession.kt
override fun getApplicationBufferSize(): Int { throw UnsupportedOperationException() } override fun getCipherSuite(): String { throw UnsupportedOperationException() } override fun getCreationTime(): Long { throw UnsupportedOperationException() } override fun getId(): ByteArray { throw UnsupportedOperationException() } override fun getLastAccessedTime(): Long {
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 3.3K bytes - Viewed (0) -
guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ImmutableCollection.java
} public final boolean add(E e) { throw new UnsupportedOperationException(); } public final boolean remove(@Nullable Object object) { throw new UnsupportedOperationException(); } public final boolean addAll(Collection<? extends E> newElements) { throw new UnsupportedOperationException(); } public final boolean removeAll(Collection<?> oldElements) {
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Tue Jan 23 18:43:40 GMT 2024 - 5K 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) -
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) -
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) -
android/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 May 03 12:43:13 GMT 2024 - Last Modified: Mon Feb 19 20:34:55 GMT 2024 - 3K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/testers/CollectionRemoveAllTester.java
try { assertFalse( "removeAll(emptyCollection) should return false or throw " + "UnsupportedOperationException", collection.removeAll(MinimalCollection.of())); } catch (UnsupportedOperationException tolerated) { } expectUnchanged(); } @CollectionFeature.Require(absent = SUPPORTS_REMOVE)
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Tue Feb 20 17:00:05 GMT 2024 - 7.7K bytes - Viewed (0) -
android/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 May 03 12:43:13 GMT 2024 - Last Modified: Mon Feb 19 20:34:55 GMT 2024 - 2.5K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/testers/MapMergeTester.java
fail("Expected NullPointerException or UnsupportedOperationException"); } catch (NullPointerException | UnsupportedOperationException expected) { } } public void testMergeNullFunction() { try { getMap().merge(k0(), v3(), null); fail("Expected NullPointerException or UnsupportedOperationException"); } catch (NullPointerException | UnsupportedOperationException expected) { } }
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Wed Feb 21 16:49:06 GMT 2024 - 6.5K bytes - Viewed (0)