Search Options

Results per page
Sort
Preferred Languages
Advance

Results 201 - 210 of 304 for UnsupportedOperationException (0.12 sec)

  1. 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();
      }
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Dec 21 14:50:24 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  2. 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() {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Nov 14 23:40:07 UTC 2024
    - 4K bytes
    - Viewed (0)
  3. guava-testlib/test/com/google/common/collect/testing/MinimalIterableTest.java

        Iterable<String> iterable = MinimalIterable.from(singleton("a"));
        Iterator<String> iterator = iterable.iterator();
        assertTrue(iterator.hasNext());
        assertEquals("a", iterator.next());
        assertThrows(UnsupportedOperationException.class, () -> iterator.remove());
        assertFalse(iterator.hasNext());
        assertThrows(NoSuchElementException.class, () -> iterator.next());
        assertThrows(IllegalStateException.class, () -> iterable.iterator());
      }
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  4. compat/maven-compat/src/test/java/org/apache/maven/artifact/resolver/ArtifactResolverTest.java

                        Artifact artifact,
                        ArtifactRepository localRepository,
                        List<ArtifactRepository> remoteRepositories) {
                    throw new UnsupportedOperationException("Cannot get available versions in this test case");
                }
    
                @Override
                public List<ArtifactVersion> retrieveAvailableVersionsFromDeploymentRepository(
    Registered: Sun Sep 07 03:35:12 UTC 2025
    - Last Modified: Wed Mar 26 10:49:22 UTC 2025
    - 10.1K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/collect/TableCollectionTest.java

                        return table.cellSet();
                      }
    
                      @Override
                      Table<String, Integer, Character> createTable() {
                        throw new UnsupportedOperationException();
                      }
                    })
                .named("ArrayTable.cellSet")
                .withFeatures(
                    CollectionSize.ONE,
                    CollectionSize.SEVERAL,
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 35.5K bytes
    - Viewed (0)
  6. 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());
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Feb 12 21:10:54 UTC 2025
    - 4.3K bytes
    - Viewed (0)
  7. okhttp/src/androidMain/kotlin/okhttp3/internal/platform/android/Android10SocketAdapter.kt

          when (val protocol = sslSocket.applicationProtocol) {
            null, "" -> null
            else -> protocol
          }
        } catch (e: UnsupportedOperationException) {
          // https://docs.oracle.com/javase/9/docs/api/javax/net/ssl/SSLSocket.html#getApplicationProtocol--
          null
        }
    
      @SuppressLint("NewApi")
      override fun configureTlsExtensions(
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 2.8K bytes
    - Viewed (0)
  8. guava-testlib/src/com/google/common/collect/testing/testers/ListReplaceAllTester.java

          }
        }
        expectContents(expected);
      }
    
      @CollectionSize.Require(absent = ZERO)
      @ListFeature.Require(absent = SUPPORTS_SET)
      public void testReplaceAll_unsupported() {
        assertThrows(UnsupportedOperationException.class, () -> getList().replaceAll(e -> e));
        expectUnchanged();
      }
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Nov 14 23:40:07 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/collect/AbstractImmutableSortedMapMapInterfaceTest.java

      public AbstractImmutableSortedMapMapInterfaceTest() {
        super(false, false, false, false, false);
      }
    
      @Override
      protected SortedMap<K, V> makeEmptyMap() {
        throw new UnsupportedOperationException();
      }
    
      private static final Joiner JOINER = Joiner.on(", ");
    
      @Override
      protected void assertMoreInvariants(Map<K, V> map) {
        // TODO: can these be moved to MapInterfaceTest?
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 17:27:14 UTC 2025
    - 2K bytes
    - Viewed (0)
  10. android/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());
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Feb 12 21:10:54 UTC 2025
    - 4.3K bytes
    - Viewed (0)
Back to top