Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 261 - 270 of 2,240 for throwIf (0.06 seconds)

  1. android/guava-tests/test/com/google/common/util/concurrent/ExecutionListTest.java

      }
    
      public void testExecute_idempotentConcurrently() throws InterruptedException {
        CountDownLatch okayToRun = new CountDownLatch(1);
        AtomicInteger runCalled = new AtomicInteger();
        list.add(
            () -> {
              try {
                okayToRun.await();
              } catch (InterruptedException e) {
                Thread.currentThread().interrupt();
                throw new RuntimeException(e);
              }
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 4.4K bytes
    - Click Count (0)
  2. guava-tests/benchmark/com/google/common/util/concurrent/MonitorBasedPriorityBlockingQueue.java

        try {
          return q.toString();
        } finally {
          monitor.leave();
        }
      }
    
      /**
       * @throws UnsupportedOperationException {@inheritDoc}
       * @throws ClassCastException {@inheritDoc}
       * @throws NullPointerException {@inheritDoc}
       * @throws IllegalArgumentException {@inheritDoc}
       */
      @CanIgnoreReturnValue // pushed down from class to method
      @Override
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 23 21:06:42 GMT 2026
    - 19K bytes
    - Click Count (0)
  3. android/guava-tests/test/com/google/common/base/ReflectionFreeAssertThrows.java

            return caught;
          }
          throw new AssertionError(
              "expected to throw " + expectedThrowable.getSimpleName() + " but threw " + t, t);
        }
        if (userPassedSupplier) {
          throw new AssertionError(
              "expected to throw "
                  + expectedThrowable.getSimpleName()
                  + " but returned result: "
                  + result);
        } else {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Aug 07 16:05:33 GMT 2025
    - 6.7K bytes
    - Click Count (0)
  4. guava-testlib/src/com/google/common/collect/testing/testers/ReflectionFreeAssertThrows.java

            return caught;
          }
          throw new AssertionError(
              "expected to throw " + expectedThrowable.getSimpleName() + " but threw " + t, t);
        }
        if (userPassedSupplier) {
          throw new AssertionError(
              "expected to throw "
                  + expectedThrowable.getSimpleName()
                  + " but returned result: "
                  + result);
        } else {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Aug 07 16:05:33 GMT 2025
    - 6.9K bytes
    - Click Count (0)
  5. src/test/java/org/codelibs/fess/exec/SuggestCreatorTest.java

        private SuggestCreator suggestCreator;
    
        @Override
        protected void setUp(TestInfo testInfo) throws Exception {
            super.setUp(testInfo);
            suggestCreator = new SuggestCreator();
        }
    
        @Override
        protected void tearDown(TestInfo testInfo) throws Exception {
            super.tearDown(testInfo);
        }
    
        // Test constructor
        @Test
        public void test_constructor() {
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 11K bytes
    - Click Count (0)
  6. src/test/java/org/codelibs/curl/CurlResponseTest.java

                assertSame(exception, e.getCause());
            } catch (IOException e) {
                fail("Should throw CurlException, not IOException");
            }
        }
    
        @Test
        public void testGetContentWithParser() throws IOException {
            CurlResponse response = new CurlResponse();
            response.setEncoding("UTF-8");
            String testContent = "42";
    Created: Thu Apr 02 15:34:12 GMT 2026
    - Last Modified: Sat Mar 21 09:11:12 GMT 2026
    - 17.7K bytes
    - Click Count (0)
  7. src/main/java/org/codelibs/fess/dict/stemmeroverride/StemmerOverrideFile.java

        /**
         * Updates the dictionary file with content from an input stream.
         *
         * @param in The input stream containing the new dictionary content.
         * @throws IOException if an I/O error occurs.
         */
        public synchronized void update(final InputStream in) throws IOException {
            try (StemmerOverrideUpdater updater = new StemmerOverrideUpdater(null)) {
                reload(updater, in);
            }
        }
    
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sat Dec 20 05:56:45 GMT 2025
    - 14.2K bytes
    - Click Count (0)
  8. android/guava-tests/test/com/google/common/util/concurrent/TrustedListenableFutureTaskTest.java

      public void testSuccessful() throws Exception {
        TrustedListenableFutureTask<Integer> task = TrustedListenableFutureTask.create(returning(2));
        assertFalse(task.isDone());
        task.run();
        assertTrue(task.isDone());
        assertFalse(task.isCancelled());
        assertEquals(2, getDone(task).intValue());
      }
    
      public void testCancelled() throws Exception {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 6.5K bytes
    - Click Count (0)
  9. android/guava-testlib/src/com/google/common/util/concurrent/testing/SameThreadScheduledExecutorService.java

          throws InterruptedException {
        Preconditions.checkNotNull(tasks, "tasks must not be null!");
        return delegate.invokeAll(tasks);
      }
    
      @Override
      public <T> List<Future<T>> invokeAll(
          Collection<? extends Callable<T>> tasks, long timeout, TimeUnit unit)
          throws InterruptedException {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Aug 07 16:37:28 GMT 2025
    - 6.5K bytes
    - Click Count (0)
  10. guava-testlib/src/com/google/common/util/concurrent/testing/SameThreadScheduledExecutorService.java

          throws InterruptedException {
        Preconditions.checkNotNull(tasks, "tasks must not be null!");
        return delegate.invokeAll(tasks);
      }
    
      @Override
      public <T> List<Future<T>> invokeAll(
          Collection<? extends Callable<T>> tasks, long timeout, TimeUnit unit)
          throws InterruptedException {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Aug 07 16:37:28 GMT 2025
    - 6.5K bytes
    - Click Count (0)
Back to Top