- Sort Score
- Num 10 results
- Language All
Results 911 - 920 of 2,310 for rethrow (0.04 seconds)
-
android/guava-testlib/src/com/google/common/collect/testing/testers/MapComputeTester.java
getMap() .compute( k0(), (k, v) -> { assertEquals(k0(), k); assertEquals(v0(), v); throw new SomeUncheckedException(); })); expectUnchanged(); } @MapFeature.Require({SUPPORTS_PUT, SUPPORTS_REMOVE}) public void testCompute_absentFunctionThrows() { assertThrows(
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Oct 31 14:51:04 GMT 2024 - 7.2K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/cache/TestingCacheLoaders.java
@Override public V load(K key) { throw e; } }; } /** Returns a {@link CacheLoader} that throws the given exception for every request. */ static <K, V> CacheLoader<K, V> exceptionLoader(Exception e) { checkNotNull(e); return new CacheLoader<K, V>() { @Override public V load(K key) throws Exception { throw e; } }; }Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Feb 23 13:13:59 GMT 2026 - 5.1K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/util/concurrent/FutureCallbackTest.java
FutureCallback<String> callback = new FutureCallback<String>() { @Override public void onSuccess(String result) { successCalls[0]++; throw exception; } @Override public void onFailure(Throwable t) { failureCalls[0]++; } }; addCallback(future, callback, directExecutor());
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 16 15:59:55 GMT 2026 - 6.7K bytes - Click Count (0) -
guava-testlib/src/com/google/common/collect/testing/testers/MapComputeTester.java
getMap() .compute( k0(), (k, v) -> { assertEquals(k0(), k); assertEquals(v0(), v); throw new SomeUncheckedException(); })); expectUnchanged(); } @MapFeature.Require({SUPPORTS_PUT, SUPPORTS_REMOVE}) public void testCompute_absentFunctionThrows() { assertThrows(
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Nov 14 23:40:07 GMT 2024 - 7.1K bytes - Click Count (0) -
guava/src/com/google/common/collect/AbstractMultiset.java
public int add(@ParametricNullness E element, int occurrences) { throw new UnsupportedOperationException(); } @CanIgnoreReturnValue @Override public final boolean remove(@Nullable Object element) { return remove(element, 1) > 0; } @CanIgnoreReturnValue @Override public int remove(@Nullable Object element, int occurrences) { throw new UnsupportedOperationException(); } @CanIgnoreReturnValue
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sat Aug 09 01:14:59 GMT 2025 - 5.9K bytes - Click Count (0) -
android/guava/src/com/google/common/base/Enums.java
Class<?> clazz = enumValue.getDeclaringClass(); try { return clazz.getDeclaredField(enumValue.name()); } catch (NoSuchFieldException impossible) { throw new AssertionError(impossible); } } /** * Returns an optional enum constant for the given type, using {@link Enum#valueOf}. If the
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Jul 01 13:41:58 GMT 2025 - 4.8K bytes - Click Count (0) -
src/main/java/jcifs/smb1/smb1/SmbComNegotiateResponse.java
len += 2; if (len > 256) { throw new RuntimeException("zero termination not found"); } } server.oemDomainName = new String(buffer, bufferIndex, len, UNI_ENCODING);Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sun Aug 31 08:00:57 GMT 2025 - 6K bytes - Click Count (0) -
src/test/java/jcifs/internal/SmbBasicFileInfoTest.java
} // --- Invalid/null usage: calling a method on null should throw NPE --- @Test void nullReference_throwsNullPointerException() { // Arrange SmbBasicFileInfo info = null; // Act & Assert: attempting to call any method on null should throw NPE Assertions.assertThrows(NullPointerException.class, () -> {Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 5.8K bytes - Click Count (0) -
src/test/java/jcifs/smb/SmbFileFilterTest.java
} @Test @DisplayName("accept: propagates SmbException thrown by dependency") void accept_propagatesSmbException() throws Exception { // Arrange: filter delegates to isDirectory which may throw SmbException SmbFileFilter filter = f -> f.isDirectory(); SmbException boom = new SmbException("io error"); when(smbFile.isDirectory()).thenThrow(boom); // Act + AssertCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 5.4K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/job/GenerateThumbnailJobTest.java
testProcessHelper.exitValue = 1; testProcessHelper.processOutput = "Generation failed"; try { thumbnailJob.executeThumbnailGenerator(); fail("Should throw JobProcessingException"); } catch (JobProcessingException e) { assertTrue(e.getMessage().contains("Thumbnail Process terminated.")); } catch (NullPointerException e) {Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Fri Mar 13 23:01:26 GMT 2026 - 19K bytes - Click Count (0)