Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 411 - 420 of 1,818 for rethrow (0.05 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

  1. guava-testlib/src/com/google/common/util/concurrent/testing/MockFutureListener.java

        Assert.assertTrue(countDownLatch.await(1L, SECONDS));
    
        try {
          Assert.assertEquals(expectedData, future.get());
        } catch (ExecutionException e) {
          throw e.getCause();
        }
      }
    
      /**
       * Verify that the listener completes in a reasonable amount of time, and Asserts that the future
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri May 12 18:12:42 GMT 2023
    - 3K bytes
    - Click Count (0)
  2. guava-testlib/src/com/google/common/collect/testing/testers/MapGetTester.java

      }
    
      @MapFeature.Require(absent = ALLOWS_NULL_KEY_QUERIES)
      public void testGet_nullNotContainedAndUnsupported() {
        try {
          assertNull("get(null) should return null or throw", get(null));
        } catch (NullPointerException tolerated) {
        }
      }
    
      @MapFeature.Require(ALLOWS_NULL_KEYS)
      @CollectionSize.Require(absent = ZERO)
      public void testGet_nonNullWhenNullContained() {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Nov 14 23:40:07 GMT 2024
    - 3.1K bytes
    - Click Count (0)
  3. build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/test/RestTestBasePlugin.java

                if (systemProperty(TESTS_REST_CLUSTER) == null) {
                    if (systemProperty(TESTS_CLUSTER) != null || systemProperty(TESTS_CLUSTER_NAME) != null) {
                        throw new IllegalArgumentException(
                            String.format("%s, %s, and %s must all be null or non-null", TESTS_REST_CLUSTER, TESTS_CLUSTER, TESTS_CLUSTER_NAME)
                        );
                    }
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Thu Aug 05 18:56:52 GMT 2021
    - 4.4K bytes
    - Click Count (0)
  4. src/test/java/jcifs/util/SimpleCircuitBreakerTest.java

        void testCircuitOpensAfterThreshold() {
            // Fail 3 times to open the circuit
            for (int i = 0; i < 3; i++) {
                try {
                    circuitBreaker.call(() -> {
                        throw new RuntimeException("Test failure");
                    });
                } catch (Exception e) {
                    // Expected
                }
            }
    
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 30 05:58:03 GMT 2025
    - 10.6K bytes
    - Click Count (0)
  5. src/main/java/org/codelibs/core/io/FileUtil.java

         * <p>
         * Example usage:
         * </p>
         * <pre>
         * Path baseDir = Paths.get("/var/app/data");
         * Path userPath = Paths.get(userInput);
         * if (!FileUtil.isPathSafe(userPath, baseDir)) {
         *     throw new SecurityException("Path traversal attempt detected");
         * }
         * </pre>
         *
         * @param pathToCheck the path to validate (must not be {@literal null})
    Created: Fri Apr 03 20:58:12 GMT 2026
    - Last Modified: Thu Feb 12 12:10:45 GMT 2026
    - 13.2K bytes
    - Click Count (0)
  6. build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/precommit/ValidateJsonNoKeywordsTask.java

                        errorsForFile.forEach(err -> pw.printf("\t%s%n", err));
                        pw.println();
                    });
                }
            } catch (FileNotFoundException e) {
                throw new GradleException("Failed to write keywords report", e);
            }
    
            String message = String.format(
                Locale.ROOT,
                "Error validating JSON. See the report at: %s%s%s",
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Tue Jun 01 09:19:30 GMT 2021
    - 7.6K bytes
    - Click Count (0)
  7. android/guava/src/com/google/common/base/AbstractIterator.java

      public final T next() {
        if (!hasNext()) {
          throw new NoSuchElementException();
        }
        state = State.NOT_READY;
        // Safe because hasNext() ensures that tryToComputeNext() has put a T into `next`.
        T result = uncheckedCastNullableTToT(next);
        next = null;
        return result;
      }
    
      @Override
      public final void remove() {
        throw new UnsupportedOperationException();
      }
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sun Dec 22 03:38:46 GMT 2024
    - 2.4K bytes
    - Click Count (0)
  8. src/test/java/jcifs/pac/kerberos/KerberosAuthDataTest.java

            assertThrows(PACDecodingException.class, () -> {
                KerberosAuthData.parse(KerberosConstants.AUTH_DATA_PAC, invalidToken, mockKeys);
            }, "Parsing an invalid PAC token should throw a PACDecodingException.");
        }
    
        /**
         * Test parsing of {@link KerberosConstants#AUTH_DATA_RELEVANT} with an invalid token.
         * Expects a {@link PACDecodingException} to be thrown.
         */
        @Test
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 2.7K bytes
    - Click Count (0)
  9. compat/maven-compat/src/main/java/org/apache/maven/repository/legacy/resolver/transform/LatestArtifactTransformation.java

                        throw new ArtifactNotFoundException("Unable to determine the latest version", artifact);
                    }
    
                    artifact.setBaseVersion(version);
                    artifact.updateVersion(version, request.getLocalRepository());
                } catch (RepositoryMetadataResolutionException e) {
                    throw new ArtifactResolutionException(e.getMessage(), artifact, e);
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Fri Jun 06 14:28:57 GMT 2025
    - 2.9K bytes
    - Click Count (0)
  10. build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/test/rerun/TestTaskConfigurer.java

            try {
                return makeAccessible(type.getDeclaredMethod(methodName, paramTypes));
            } catch (NoSuchMethodException e) {
                throw new RuntimeException(e);
            }
        }
    
        private static Method makeAccessible(Method method) {
            method.setAccessible(true);
            return method;
        }
    
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Tue Jun 01 09:19:30 GMT 2021
    - 3.1K bytes
    - Click Count (0)
Back to Top