Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 851 for throwIt (0.04 seconds)

  1. android/guava-tests/test/com/google/common/io/CloserTest.java

          this.closeable = closeable;
          this.thrown = thrown;
          this.suppressed = suppressed;
        }
    
        @Override
        public boolean equals(@Nullable Object obj) {
          if (obj instanceof Suppression) {
            Suppression other = (Suppression) obj;
            return closeable.equals(other.closeable)
                && thrown.equals(other.thrown)
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Tue Oct 28 16:03:47 GMT 2025
    - 11.8K bytes
    - Click Count (0)
  2. guava-tests/test/com/google/common/io/CloserTest.java

          this.closeable = closeable;
          this.thrown = thrown;
          this.suppressed = suppressed;
        }
    
        @Override
        public boolean equals(@Nullable Object obj) {
          if (obj instanceof Suppression) {
            Suppression other = (Suppression) obj;
            return closeable.equals(other.closeable)
                && thrown.equals(other.thrown)
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Tue Oct 28 16:03:47 GMT 2025
    - 11.8K bytes
    - Click Count (0)
  3. src/test/java/jcifs/util/SmbCircuitBreakerTest.java

                    try {
                        customCb.executeWithCircuitBreaker(() -> {
                            throw new RuntimeException("non-critical error");
                        }, isFailure);
                        fail("Should have thrown exception");
                    } catch (CIFSException e) {
                        // Expected - exception is thrown but not counted as failure
                    }
                }
    
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Sat Aug 30 05:58:03 GMT 2025
    - 23.2K bytes
    - Click Count (0)
  4. android/guava-tests/test/com/google/common/util/concurrent/JSR166TestCase.java

          throw t;
        }
      }
    
      /** Calls threadFail with message "should throw exception". */
      public void threadShouldThrow() {
        threadFail("should throw exception");
      }
    
      /** Calls threadFail with message "should throw" + exceptionName. */
      public void threadShouldThrow(String exceptionName) {
        threadFail("should throw " + exceptionName);
      }
    
      /**
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Thu Dec 11 20:07:52 GMT 2025
    - 37.8K bytes
    - Click Count (0)
  5. fess-crawler/src/test/java/org/codelibs/fess/crawler/extractor/impl/AbstractExtractorTest.java

        }
    
        /**
         * Test that getText throws exception when null stream is provided.
         * Note: validateInputStream throws the exception, so the validateCalled flag
         * is never set to true (exception is thrown before flag assignment).
         */
        public void test_getText_throwsExceptionForNullStream() {
            try {
    Created: Sat Dec 20 11:21:39 GMT 2025
    - Last Modified: Mon Nov 24 03:59:47 GMT 2025
    - 8.4K bytes
    - Click Count (0)
  6. src/test/java/org/codelibs/fess/suggest/SuggesterResourceLoadingTest.java

            try (InputStream is = null) {
                if (is == null) {
                    throw new IOException("Resource is null");
                }
                fail("Should not reach this point");
            } catch (IOException e) {
                assertEquals("Resource is null", e.getMessage());
                // No NullPointerException should be thrown when exiting try-with-resources
            }
        }
    
        /**
    Created: Sat Dec 20 13:04:59 GMT 2025
    - Last Modified: Mon Nov 24 03:40:05 GMT 2025
    - 9.6K bytes
    - Click Count (0)
  7. guava-tests/test/com/google/common/base/SuppliersTest.java

        for (Thread t : threads) {
          t.join();
        }
    
        if (thrown.get() != null) {
          throw thrown.get();
        }
        assertEquals(1, count.get());
      }
    
      @J2ktIncompatible
      @GwtIncompatible // Thread
      @SuppressWarnings("ThreadPriorityCheck") // doing our best to test for races
      public void testSynchronizedSupplierThreadSafe() throws InterruptedException {
        Supplier<Integer> nonThreadSafe =
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Tue Oct 28 16:03:47 GMT 2025
    - 17.9K bytes
    - Click Count (0)
  8. android/guava-tests/test/com/google/common/base/SuppliersTest.java

        for (Thread t : threads) {
          t.join();
        }
    
        if (thrown.get() != null) {
          throw thrown.get();
        }
        assertEquals(1, count.get());
      }
    
      @J2ktIncompatible
      @GwtIncompatible // Thread
      @SuppressWarnings("ThreadPriorityCheck") // doing our best to test for races
      public void testSynchronizedSupplierThreadSafe() throws InterruptedException {
        Supplier<Integer> nonThreadSafe =
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Tue Oct 28 16:03:47 GMT 2025
    - 17.9K bytes
    - Click Count (0)
  9. android/guava/src/com/google/common/util/concurrent/ClosingFuture.java

         *
         * @throws ExecutionException if {@code closingFuture} is a failed step
         * @throws CancellationException if the {@code closingFuture}'s future was cancelled
         * @throws IllegalArgumentException if {@code closingFuture} is not one of the futures passed to
         *     {@link #whenAllComplete(Iterable)} or {@link #whenAllComplete(Iterable)}
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Thu Sep 11 13:51:27 GMT 2025
    - 96.9K bytes
    - Click Count (0)
  10. guava-tests/test/com/google/common/util/concurrent/MoreExecutorsTest.java

        final int throwAfterCount;
        final RuntimeException thrown;
        int count;
    
        ThrowingRunnable(int throwAfterCount, RuntimeException thrown) {
          this.throwAfterCount = throwAfterCount;
          this.thrown = thrown;
        }
    
        @Override
        public void run() {
          if (++count >= throwAfterCount) {
            throw thrown;
          }
        }
      }
    
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Fri Dec 12 00:25:21 GMT 2025
    - 26.5K bytes
    - Click Count (0)
Back to Top