- Sort Score
- Num 10 results
- Language All
Results 371 - 380 of 492 for RuntimeException (0.1 seconds)
-
guava-tests/test/com/google/common/collect/AbstractImmutableSetTest.java
Set<String> immutableCopy; try { immutableCopy = copyOf(input); } catch (RuntimeException e) { throw new RuntimeException( Strings.lenientFormat( "byAscendingSize %s, startIndex %s, inputIsSet %s", byAscendingSize, startIndex, inputIsSet), e);
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Mar 13 13:01:07 GMT 2026 - 18.5K bytes - Click Count (0) -
src/test/java/jcifs/smb/SmbRandomAccessFileTest.java
} catch (Exception e) { throw new RuntimeException(e); } } private static void setField(Object target, String name, Object value) { try { var f = target.getClass().getDeclaredField(name); f.setAccessible(true); f.set(target, value); } catch (Exception e) { throw new RuntimeException(e); } }
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 18.1K bytes - Click Count (0) -
src/test/java/jcifs/context/CIFSContextCredentialWrapperTest.java
} @Test @DisplayName("Should pass null for SmbAuthException when error is not SmbAuthException") void testRenewCredentials_WithErrorNotSmbAuthException() { Throwable genericError = new RuntimeException("Generic Error"); try (MockedStatic<NtlmAuthenticator> mockedNtlmAuthenticator = mockStatic(NtlmAuthenticator.class)) {Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 11.4K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/util/InputStreamThreadTest.java
String input = "test line"; InputStream is = new ByteArrayInputStream(input.getBytes(StandardCharsets.UTF_8)); Consumer<String> faultyCallback = line -> { throw new RuntimeException("Callback exception"); }; InputStreamThread thread = new InputStreamThread(is, StandardCharsets.UTF_8, 10, faultyCallback); thread.start(); thread.join(1000);
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Sun Jan 11 08:43:05 GMT 2026 - 12K bytes - Click Count (0) -
guava-tests/test/com/google/common/util/concurrent/JdkFutureAdaptersTest.java
* Wait a little to give us time to call addListener before the future's * value is set in addition to the call we'll make after then. */ allowGetToComplete.await(1, SECONDS); throw new RuntimeException("expected, should be caught"); } @Override public V get(long timeout, TimeUnit unit) { throw new AssertionFailedError(); } @Override public boolean isCancelled() {
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Mar 13 13:01:07 GMT 2026 - 10K bytes - Click Count (0) -
src/test/java/jcifs/netbios/NodeStatusRequestTest.java
NodeStatusRequest spyRequest = spy(nodeStatusRequest); doThrow(new RuntimeException("Test exception")).when(spyRequest).writeQuestionSectionWireFormat(any(byte[].class), anyInt()); // Act & Assert assertThrows(RuntimeException.class, () -> { spyRequest.writeBodyWireFormat(dst, 0); });
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 13.9K bytes - Click Count (0) -
guava/src/com/google/common/collect/AbstractIterator.java
* result. * * @return the next element if there was one. If {@code endOfData} was called during execution, * the return value will be ignored. * @throws RuntimeException if any unrecoverable error happens. This exception will propagate * outward to the {@code hasNext()}, {@code next()}, or {@code peek()} invocation that invokedCreated: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 17 20:26:29 GMT 2025 - 6.3K bytes - Click Count (0) -
src/main/java/jcifs/internal/smb2/Smb2SigningDigest.java
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 30 05:58:03 GMT 2025 - 9.9K bytes - Click Count (0) -
impl/maven-cli/src/test/java/org/apache/maven/cling/invoker/mvnup/goals/StrategyOrchestratorTest.java
when(mockStrategies.get(0).isApplicable(context)).thenReturn(true); when(mockStrategies.get(0).apply(Mockito.eq(context), Mockito.any())) .thenThrow(new RuntimeException("Strategy failed")); when(mockStrategies.get(1).isApplicable(context)).thenReturn(false); when(mockStrategies.get(2).isApplicable(context)).thenReturn(false);
Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Tue Nov 18 18:03:26 GMT 2025 - 12.3K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/exception/InvalidAccessTokenExceptionTest.java
InvalidAccessTokenException exception = new InvalidAccessTokenException(type, message); assertTrue(exception instanceof FessSystemException); assertTrue(exception instanceof RuntimeException); assertTrue(exception instanceof Exception); assertTrue(exception instanceof Throwable); } @Test public void test_throwAndCatch() {
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Fri Mar 13 23:01:26 GMT 2026 - 10.7K bytes - Click Count (0)