Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 51 - 60 of 2,075 for throwIf (0.21 seconds)

  1. android/guava-testlib/src/com/google/common/testing/SloppyTearDown.java

      @Override
      public final void tearDown() {
        try {
          sloppyTearDown();
        } catch (Throwable t) {
          logger.log(Level.INFO, "exception thrown during tearDown: " + t.getMessage(), t);
        }
      }
    
      public abstract void sloppyTearDown() throws Exception;
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sat Dec 21 14:50:24 GMT 2024
    - 1.6K bytes
    - Click Count (0)
  2. android/guava/src/com/google/common/collect/ContiguousSet.java

       * ContiguousSet}.
       *
       * @throws UnsupportedOperationException always
       * @deprecated Use {@link #create}.
       */
      @Deprecated
      @DoNotCall("Always throws UnsupportedOperationException")
      public static <E> ImmutableSortedSet.Builder<E> builder() {
        throw new UnsupportedOperationException();
      }
    
      // redeclare to help optimizers with b/310253115
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Aug 07 16:05:33 GMT 2025
    - 9.9K bytes
    - Click Count (0)
  3. android/guava-testlib/test/com/google/common/testing/TearDownStackTest.java

      public void testSingleTearDown() throws Exception {
        TearDownStack stack = buildTearDownStack();
    
        SimpleTearDown tearDown = new SimpleTearDown();
        stack.addTearDown(tearDown);
    
        assertEquals(false, tearDown.ran);
    
        stack.runTearDown();
    
        assertEquals("tearDown should have run", true, tearDown.ran);
      }
    
      public void testMultipleTearDownsHappenInOrder() throws Exception {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Mar 17 16:11:48 GMT 2026
    - 4.5K bytes
    - Click Count (0)
  4. src/test/java/org/codelibs/fess/job/PurgeThumbnailJobTest.java

        protected void setUp(TestInfo testInfo) throws Exception {
            super.setUp(testInfo);
            purgeThumbnailJob = new PurgeThumbnailJob();
    
            // Create a mock ThumbnailManager
            thumbnailManager = new MockThumbnailManager();
    
            ComponentUtil.register(thumbnailManager, "thumbnailManager");
        }
    
        @Override
        protected void tearDown(TestInfo testInfo) throws Exception {
            super.tearDown(testInfo);
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 7.4K bytes
    - Click Count (0)
  5. src/main/java/org/codelibs/fess/sso/spnego/SpnegoAuthenticator.java

             *
             * @return Never returns, always throws UnsupportedOperationException
             * @throws UnsupportedOperationException Always thrown as this operation is not supported
             */
            @Override
            public ServletContext getServletContext() {
                throw new UnsupportedOperationException("getServletContext() is not supported in SpnegoFilterConfig");
            }
    
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sun Mar 15 08:18:23 GMT 2026
    - 18.2K bytes
    - Click Count (3)
  6. android/guava-tests/test/com/google/common/util/concurrent/SequentialExecutorTest.java

       * sees an Error?
       */
      @AndroidIncompatible
      public void testTaskThrowsError() throws Exception {
        class MyError extends Error {}
        CyclicBarrier barrier = new CyclicBarrier(2);
        // we need to make sure the error gets thrown on a different thread.
        ExecutorService service = newSingleThreadExecutor();
        try {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 10.5K bytes
    - Click Count (0)
  7. guava-testlib/test/com/google/common/testing/NullPointerTesterTest.java

          assertThat(expected).hasMessageThat().contains("[null]");
          foundProblem = true;
        }
        assertTrue("Should report error when different exception is thrown", foundProblem);
      }
    
      public void testMessageNoException() throws Exception {
        Method method = OneArg.class.getMethod("staticOneArgShouldThrowNpeButDoesnt", String.class);
        boolean foundProblem = false;
        try {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 12 17:47:10 GMT 2026
    - 47.9K bytes
    - Click Count (0)
  8. android/guava-testlib/src/com/google/common/collect/testing/AbstractIteratorTester.java

       * throwing exceptions like {@link NoSuchElementException} at the appropriate times, it throws
       * {@link PermittedMetaException} instances, which wrap a set of all exceptions that the iterator
       * could throw during the invocation of that method. This is necessary because, e.g., a call to
       * {@code iterator().remove()} of an unmodifiable list could throw either {@link
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 23 21:06:42 GMT 2026
    - 20.8K bytes
    - Click Count (0)
  9. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/concurrent/TaskRunner.kt

                } ?: return
              }
            } catch (thrown: Throwable) {
              // A task failed. Update execution state and re-throw the exception.
              withLock {
                afterRun(task, -1L, false)
              }
              if (thrown is InterruptedException) {
                Thread.currentThread().interrupt()
              } else {
                throw thrown
              }
            } finally {
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Sat Aug 30 11:30:11 GMT 2025
    - 10.4K bytes
    - Click Count (0)
  10. guava-testlib/test/com/google/common/testing/TearDownStackTest.java

      public void testSingleTearDown() throws Exception {
        TearDownStack stack = buildTearDownStack();
    
        SimpleTearDown tearDown = new SimpleTearDown();
        stack.addTearDown(tearDown);
    
        assertEquals(false, tearDown.ran);
    
        stack.runTearDown();
    
        assertEquals("tearDown should have run", true, tearDown.ran);
      }
    
      public void testMultipleTearDownsHappenInOrder() throws Exception {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Mar 17 16:11:48 GMT 2026
    - 4.5K bytes
    - Click Count (0)
Back to Top