- Sort Score
- Result 10 results
- Languages All
Results 771 - 780 of 1,812 for rethrow (0.03 sec)
-
src/test/java/org/codelibs/fess/validation/CronExpressionValidatorTest.java
for (String cron : potentiallyValidCrons) { boolean result = validator.isValid(cron, context); // Don't assert true/false here, just test that method doesn't throw assertNotNull("Validation should return a boolean result for: " + cron, Boolean.valueOf(result)); } } // Test edge cases to understand the validation behavior
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Tue Aug 19 14:09:36 UTC 2025 - 4.5K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/MinimalIterable.java
this.iterator = iterator; } @Override public Iterator<E> iterator() { if (iterator == null) { // TODO: throw something else? Do we worry that people's code and tests // might be relying on this particular type of exception? throw new IllegalStateException(); } try { return iterator; } finally { iterator = null; } }
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sun Dec 22 03:38:46 UTC 2024 - 3.1K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/testers/MapReplaceTester.java
// permitted not to throw because it would be a no-op } expectUnchanged(); } @MapFeature.Require(value = SUPPORTS_PUT, absent = ALLOWS_NULL_KEY_QUERIES) public void testReplace_absentNullKeyUnsupported() { try { getMap().replace(null, v3()); } catch (NullPointerException tolerated) { // permitted not to throw because it would be a no-op } expectUnchanged();
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Nov 14 23:40:07 UTC 2024 - 4K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/helper/IntervalControlHelper.java
final String[] froms = time.split(":"); if (froms.length != 2) { throw new FessSystemException("Invalid format: " + time); } final int[] values = new int[2]; values[0] = Integer.parseInt(froms[0]); if (values[0] < 0 || values[0] > 23) { throw new FessSystemException("Invalid format: " + time); } values[1] = Integer.parseInt(froms[1]);
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Thu Jul 17 08:28:31 UTC 2025 - 9.9K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/ds/DataStoreFactoryTest.java
fail("Should throw IllegalArgumentException"); } catch (IllegalArgumentException e) { assertEquals("name or dataStore is null.", e.getMessage()); } } // Test add method with both null parameters public void test_add_bothNull() { try { dataStoreFactory.add(null, null); fail("Should throw IllegalArgumentException");
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Tue Aug 19 14:09:36 UTC 2025 - 12.8K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/io/Smb2FlushRequestTest.java
assertArrayEquals(testFileId, storedFileId); } @Test @DisplayName("Constructor with null file ID should accept null") void testConstructorWithNullFileId() { // Should not throw exception Smb2FlushRequest requestWithNull = new Smb2FlushRequest(mockConfig, null); assertNotNull(requestWithNull); } @Test @DisplayName("setFileId should update file ID")
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.5K bytes - Viewed (0) -
samples/guide/src/main/java/okhttp3/recipes/CertificatePinning.java
Request request = new Request.Builder() .url("https://publicobject.com/robots.txt") .build(); try (Response response = client.newCall(request).execute()) { if (!response.isSuccessful()) throw new IOException("Unexpected code " + response); for (Certificate certificate : response.handshake().peerCertificates()) { System.out.println(CertificatePinner.pin(certificate)); } } }
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Sun Dec 08 21:30:01 UTC 2019 - 1.7K bytes - Viewed (0) -
src/main/java/org/codelibs/core/net/JarURLConnectionUtil.java
public static JarFile getJarFile(final JarURLConnection conn) { assertArgumentNotNull("conn", conn); try { return conn.getJarFile(); } catch (final IOException e) { throw new IORuntimeException(e); } }
Registered: Fri Sep 05 20:58:11 UTC 2025 - Last Modified: Thu Jul 31 08:16:49 UTC 2025 - 1.6K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/score/LtrQueryRescorerTest.java
assertEquals(testWindowSize, queryRescorerBuilder.windowSize().intValue()); } public void test_evaluate_withNullParams() { // Test with null parameters - should throw NPE due to OpenSearch StoredLtrQueryBuilder requirements final String testModelName = "test_model"; final int testWindowSize = 75; ComponentUtil.setFessConfig(new FessConfig.SimpleImpl() {
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Tue Aug 19 14:09:36 UTC 2025 - 11.5K bytes - Viewed (0) -
compat/maven-compat/src/main/java/org/apache/maven/project/interpolation/StringSearchModelInterpolator.java
ModelInterpolationException error = AccessController.doPrivileged(action); if (error != null) { throw error; } } finally { getInterpolator().clearAnswers(); } } @Override protected Interpolator createInterpolator() {
Registered: Sun Sep 07 03:35:12 UTC 2025 - Last Modified: Fri Jun 06 14:28:57 UTC 2025 - 14K bytes - Viewed (0)