Search Options

Results per page
Sort
Preferred Languages
Advance

Results 781 - 790 of 1,812 for rethrow (0.04 sec)

  1. src/test/java/jcifs/smb/PreauthIntegrityServiceTest.java

            // With enforcement disabled, this should log a warning but not throw
            PreauthIntegrityService lenientService = new PreauthIntegrityService(secureRandom, PreauthIntegrityService.HASH_ALGO_SHA512, false);
    
            // Should not throw exception
            lenientService.updatePreauthHash("non-existent", "test".getBytes());
    
            // With enforcement enabled, should throw exception
            assertThrows(CIFSException.class, () -> {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 11.1K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/smb2/io/Smb2FlushResponseTest.java

                int bytesRead = response.readBytesWireFormat(buffer, bufferIndex);
    
                // Then
                assertEquals(4, bytesRead);
            }
    
            @Test
            @DisplayName("Should throw exception for invalid structure size")
            void testReadBytesWireFormatInvalidStructureSize() {
                // Given
                byte[] buffer = new byte[10];
                int bufferIndex = 0;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 10.3K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/util/concurrent/GeneratedMonitorTest.java

          if (actualException instanceof InterruptedException) {
            return Outcome.INTERRUPT;
          } else {
            throw new AssertionError("unexpected exception", targetException);
          }
        } catch (IllegalAccessException e) {
          throw new AssertionError("unexpected exception", e);
        }
      }
    
      private void enterSatisfyGuardAndLeaveInCurrentThread() {
        monitor.enter();
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 19:31:30 UTC 2025
    - 27K bytes
    - Viewed (0)
  4. src/test/java/jcifs/smb/DirFileEntryEnumIterator2Test.java

                    // Now emulate error thrown by transport for create chain
                    throw new SmbException(NtStatus.NT_STATUS_NO_SUCH_FILE, false);
                }
                return null;
            }).when(tree).send(any(Request.class));
    
            // Act: constructing the iterator must not throw and results in empty iterator
            DirFileEntryEnumIterator2 it = new DirFileEntryEnumIterator2(tree, parent, "*", null, 0);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 13.7K bytes
    - Viewed (0)
  5. 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) {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 18.8K bytes
    - Viewed (0)
  6. guava/src/com/google/common/math/LongMath.java

                case HALF_UP:
                  return (x >= 0) ? roundCeilingAsDouble : roundFloorAsDouble;
                default:
                  throw new AssertionError("impossible");
              }
            }
        }
        throw new AssertionError("impossible");
      }
    
      /**
       * Returns the closest representable {@code long} to the absolute value of {@code x}.
       *
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Fri Aug 29 16:20:07 UTC 2025
    - 46.8K bytes
    - Viewed (0)
  7. src/test/java/org/codelibs/fess/helper/ProtocolHelperTest.java

        }
    
        public void test_loadProtocols_invalidPackage() {
            final ProtocolHelper protocolHelper = new ProtocolHelper();
    
            // Should not throw exception with invalid package
            protocolHelper.loadProtocols("org.invalid.package.does.not.exist");
    
            // Should have empty arrays initially
            assertEquals(0, protocolHelper.getWebProtocols().length);
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Jul 19 23:49:30 UTC 2025
    - 21.5K bytes
    - Viewed (0)
  8. android/guava-testlib/src/com/google/common/collect/testing/google/UnmodifiableCollectionTests.java

       * <ol>
       *   <li>All its mutation methods result in UnsupportedOperationException, and do not change the
       *       underlying contents.
       *   <li>All methods that return objects that can indirectly mutate the collection throw
       *       UnsupportedOperationException when those mutators are called.
       * </ol>
       *
       * @param collection the presumed-immutable collection
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Aug 10 19:54:19 UTC 2025
    - 14.8K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/fess/helper/SearchHelper.java

                if (response.hasFailures()) {
                    throw new SearchEngineClientException(response.buildFailureMessage());
                }
                return true;
            } catch (final InterruptedException e) {
                throw new InterruptedRuntimeException(e);
            } catch (final ExecutionException e) {
                throw new SearchEngineClientException("Failed to update bulk data.", e);
            }
        }
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 35.8K bytes
    - Viewed (0)
  10. fess-crawler/src/main/java/org/codelibs/fess/crawler/transformer/impl/XmlTransformer.java

                }
                resultData.setEncoding(charsetName);
    
                return resultData;
            } catch (final CrawlerSystemException e) {
                throw e;
            } catch (final Exception e) {
                throw new CrawlerSystemException("Could not store data.", e);
            }
        }
    
        /**
         * Retrieves a list of XPath nodes from the document.
         *
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Sun Jul 06 02:13:03 UTC 2025
    - 23.9K bytes
    - Viewed (0)
Back to top