Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 301 - 310 of 396 for RuntimeException (0.2 seconds)

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

  1. src/test/java/org/codelibs/fess/exec/ThumbnailGeneratorTest.java

                        try {
                            return File.createTempFile(prefix, suffix);
                        } catch (Exception e) {
                            throw new RuntimeException(e);
                        }
                    }
                };
                ComponentUtil.register(mockSystemHelper, "systemHelper");
    
                // Register mock FessConfig
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 11.2K bytes
    - Click Count (0)
  2. src/test/java/jcifs/SmbSessionTest.java

            void shouldHandleExceptionsDuringResourceCleanup() throws Exception {
                SmbSession mockSession = mock(SmbSession.class);
                doThrow(new RuntimeException("Cleanup failed")).when(mockSession).close();
    
                assertThrows(RuntimeException.class, () -> {
                    try (SmbSession session = mockSession) {
                        // Resource usage simulation
                        session.getConfig();
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 15.1K bytes
    - Click Count (0)
  3. android/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 invoked
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 17 20:26:29 GMT 2025
    - 6.3K bytes
    - Click Count (0)
  4. src/test/java/jcifs/smb/NtlmUtilTest.java

            when(cifsContext.getConfig()).thenReturn(configuration);
            when(configuration.getOemEncoding()).thenReturn("X-INVALID-ENCODING-NOT-EXISTENT");
    
            // Act + Assert
            RuntimeException ex = assertThrows(RuntimeException.class, () -> NtlmUtil.getPreNTLMResponse(cifsContext, "password", new byte[8]));
            assertTrue(ex.getMessage().contains("Unsupported OEM encoding"));
            verify(cifsContext, atLeastOnce()).getConfig();
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 30 05:58:03 GMT 2025
    - 12K bytes
    - Click Count (1)
  5. 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)
  6. 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)
  7. 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)
  8. src/main/java/jcifs/internal/smb2/Smb2SigningDigest.java

                try {
                    mac = createMacInstance();
                } catch (GeneralSecurityException e) {
                    log.error("Failed to create Mac instance for signing", e);
                    throw new RuntimeException("Failed to create Mac instance", e);
                }
    
                mac.update(data, offset, length);
                final byte[] sig = mac.doFinal();
    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)
  9. 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)
  10. 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)
Back to Top