Search Options

Results per page
Sort
Preferred Languages
Advance

Results 231 - 240 of 304 for UnsupportedOperationException (1.12 sec)

  1. 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() {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 3.4K bytes
    - Viewed (0)
  2. src/main/java/jcifs/smb/ShareEnumIterator.java

         */
        @Override
        public void close() {
            // nothing to clean up
            this.next = null;
        }
    
        @Override
        public void remove() {
            throw new UnsupportedOperationException("remove");
        }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 3.5K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/collect/AbstractIteratorTest.java

                  endOfData();
                }
                haveBeenCalled = true;
                return 0;
              }
            };
    
        assertEquals(0, (int) iter.next());
    
        assertThrows(UnsupportedOperationException.class, iter::remove);
      }
    
      public void testReentrantHasNext() {
        Iterator<Integer> iter =
            new AbstractIterator<Integer>() {
              @Override
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 7.8K bytes
    - Viewed (0)
  4. guava-testlib/src/com/google/common/util/concurrent/testing/TestingExecutors.java

       *
       * <p>Because of the nature of single-thread execution, the methods {@code scheduleAtFixedRate}
       * and {@code scheduleWithFixedDelay} are not supported by this class and will throw an
       * UnsupportedOperationException.
       *
       * <p>The implementation deviates from the {@code ExecutorService} specification with regards to
       * the {@code shutdownNow} method. First, "best-effort" with regards to canceling running tasks is
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Jul 17 15:26:41 UTC 2025
    - 6.6K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/collect/IterablesTest.java

       */
      private static class DiesOnIteratorArrayList extends ArrayList<String> {
        /**
         * @throws UnsupportedOperationException all the time
         */
        @Override
        public Iterator<String> iterator() {
          throw new UnsupportedOperationException();
        }
      }
    
      public void testGetLast_withDefault_not_empty_list() {
        // TODO: verify that this is the best testing strategy.
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 46.6K bytes
    - Viewed (0)
  6. 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/failure
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 21 04:51:33 UTC 2025
    - 5.6K bytes
    - Viewed (0)
  7. android/guava-testlib/src/com/google/common/collect/testing/google/MultisetSetCountConditionallyTester.java

      }
    
      @CollectionFeature.Require(absent = SUPPORTS_ADD)
      public void testSetCountConditional_negativeOldCount_addUnsupported() {
        try {
          assertSetCountNegativeOldCount();
        } catch (UnsupportedOperationException tolerated) {
        }
      }
    
      // Incorrect expected present count.
    
      @CollectionFeature.Require(SUPPORTS_ADD)
      public void testSetCountConditional_oldCountTooLarge() {
        assertFalse(
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Nov 14 23:40:07 UTC 2024
    - 4K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/collect/IterablesTest.java

       */
      private static class DiesOnIteratorArrayList extends ArrayList<String> {
        /**
         * @throws UnsupportedOperationException all the time
         */
        @Override
        public Iterator<String> iterator() {
          throw new UnsupportedOperationException();
        }
      }
    
      public void testGetLast_withDefault_not_empty_list() {
        // TODO: verify that this is the best testing strategy.
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 45.2K bytes
    - Viewed (0)
  9. android/guava-tests/benchmark/com/google/common/util/concurrent/MonitorBasedPriorityBlockingQueue.java

        Monitor monitor = this.monitor;
        monitor.enter();
        try {
          return q.toString();
        } finally {
          monitor.leave();
        }
      }
    
      /**
       * @throws UnsupportedOperationException {@inheritDoc}
       * @throws ClassCastException {@inheritDoc}
       * @throws NullPointerException {@inheritDoc}
       * @throws IllegalArgumentException {@inheritDoc}
       */
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 18:46:00 UTC 2025
    - 18.9K bytes
    - Viewed (0)
  10. guava-testlib/src/com/google/common/collect/testing/google/MultisetNavigationTester.java

        assertEquals(asList(b, c), copyToList(sortedMultiset.entrySet()));
      }
    
      @CollectionFeature.Require(absent = SUPPORTS_REMOVE)
      public void testPollFirstUnsupported() {
        assertThrows(UnsupportedOperationException.class, () -> sortedMultiset.pollFirstEntry());
      }
    
      @CollectionSize.Require(SEVERAL)
      public void testLower() {
        resetWithHole();
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Dec 19 20:14:36 UTC 2024
    - 26K bytes
    - Viewed (0)
Back to top