Search Options

Results per page
Sort
Preferred Languages
Advance

Results 231 - 240 of 2,174 for Exception (0.18 sec)

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

        MockCallback callback = new MockCallback(e);
        addCallback(f, callback, directExecutor());
      }
    
      public void testOnSuccessThrowsRuntimeException() throws Exception {
        RuntimeException exception = new RuntimeException();
        String result = "result";
        SettableFuture<String> future = SettableFuture.create();
        int[] successCalls = new int[1];
        int[] failureCalls = new int[1];
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Jul 14 14:44:08 UTC 2025
    - 6.7K bytes
    - Viewed (0)
  2. src/test/java/jcifs/util/SimpleCircuitBreakerTest.java

        void testFallbackWhenOpen() throws Exception {
            // Open the circuit
            circuitBreaker.tripBreaker();
    
            String result = circuitBreaker.call(() -> "primary", () -> "fallback");
    
            assertEquals("fallback", result);
        }
    
        @Test
        @DisplayName("Test transition to HALF_OPEN after timeout")
        void testTransitionToHalfOpen() throws Exception {
            // Open the circuit
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 10.6K bytes
    - Viewed (0)
  3. fess-crawler/src/test/java/org/codelibs/fess/crawler/transformer/impl/AbstractTransformerTest.java

        /**
         * Test concurrent name changes
         */
        public void test_concurrentNameChanges() throws Exception {
            final int threadCount = 10;
            final CountDownLatch startLatch = new CountDownLatch(1);
            final CountDownLatch endLatch = new CountDownLatch(threadCount);
            final List<Exception> exceptions = new ArrayList<>();
    
            ExecutorService executor = Executors.newFixedThreadPool(threadCount);
    
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Sat Sep 06 04:15:37 UTC 2025
    - 20.8K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/util/concurrent/AbstractFutureTest.java

      }
    
      public void testEvilFuture_setFuture() throws Exception {
        RuntimeException exception = new RuntimeException("you didn't say the magic word!");
        AbstractFuture<String> evilFuture =
            new AbstractFuture<String>() {
              @Override
              public void addListener(Runnable r, Executor e) {
                throw exception;
              }
            };
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Fri Jul 11 18:52:30 UTC 2025
    - 46.8K bytes
    - Viewed (0)
  5. src/test/java/org/codelibs/fess/mylasta/action/FessHtmlPathTest.java

        }
    
        public void test_loginPaths() throws Exception {
            // Test login-related paths
            assertEquals("/login/index.jsp", FessHtmlPath.path_Login_IndexJsp.getRoutingPath());
            assertEquals("/login/newpassword.jsp", FessHtmlPath.path_Login_NewpasswordJsp.getRoutingPath());
        }
    
        public void test_configPaths() throws Exception {
            // Test configuration paths
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 12.9K bytes
    - Viewed (0)
  6. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/-UtilCommon.kt

        }
      }
      if (exception != null) {
        throw exception
      }
    }
    
    internal fun <E> MutableList<E>.addIfAbsent(element: E) {
      if (!contains(element)) add(element)
    }
    
    internal fun Exception.withSuppressed(suppressed: List<Exception>): Throwable =
      apply {
        for (e in suppressed) addSuppressed(e)
      }
    
    internal inline fun <T> Iterable<T>.filterList(predicate: T.() -> Boolean): List<T> {
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Mon May 05 16:01:00 UTC 2025
    - 10.1K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/cache/CacheLoadingTest.java

        assertEquals(key, result.get(1));
        assertEquals(key + suffix, cache.getUnchecked(key));
      }
    
      static <T> Callable<T> throwing(Exception exception) {
        return new Callable<T>() {
          @Override
          public T call() throws Exception {
            throw exception;
          }
        };
      }
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 19:31:30 UTC 2025
    - 85.7K bytes
    - Viewed (0)
  8. src/test/java/jcifs/internal/smb2/info/Smb2QueryInfoResponseTest.java

            when(response.getHeaderStart()).thenReturn(0);
    
            SMBProtocolDecodingException exception = assertThrows(SMBProtocolDecodingException.class,
                    () -> response.readBytesWireFormat(buffer, bufferIndex), "Should throw exception for unknown quota info class");
    
            assertTrue(exception.getMessage().contains("Unknown quota info class"));
        }
    
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 24.5K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/eventbus/EventBusTest.java

      }
    
      /** Records thrown exception information. */
      private static final class RecordingSubscriberExceptionHandler
          implements SubscriberExceptionHandler {
        private SubscriberExceptionContext context;
        private Throwable exception;
    
        @Override
        public void handleException(Throwable exception, SubscriberExceptionContext context) {
          this.exception = exception;
          this.context = context;
        }
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Jul 16 17:42:14 UTC 2025
    - 11.3K bytes
    - Viewed (0)
  10. src/test/java/jcifs/smb/SmbFileInputStreamTest.java

            void readNullArrayThrows() throws Exception {
                SmbFileInputStream in = newStream();
                assertThrows(NullPointerException.class, () -> in.read(null));
            }
    
            @Test
            @DisplayName("readDirect with len <= 0 returns 0")
            void readDirectZeroLen() throws Exception {
                SmbFileInputStream in = newStream();
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 12.8K bytes
    - Viewed (0)
Back to top