Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 331 - 340 of 3,804 for throws (0.06 seconds)

  1. src/test/java/org/codelibs/fess/rank/fusion/RankFusionProcessorErrorHandlingTest.java

    public class RankFusionProcessorErrorHandlingTest extends UnitFessTestCase {
    
        private static final String ID_FIELD = "_id";
    
        /**
         * Test handling of searcher that throws RuntimeException.
         */
        @Test
        public void test_searcherThrowsRuntimeException() throws Exception {
            try (RankFusionProcessor processor = new RankFusionProcessor()) {
                processor.setSearcher(new TestSearcher(100));
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sun Jan 11 08:43:05 GMT 2026
    - 14.3K bytes
    - Click Count (0)
  2. src/test/java/jcifs/http/NtlmServletTest.java

        /**
         * Test the service method with a valid NTLM Authorization header.
         * Simulates a successful NTLM authentication.
         * @throws ServletException
         * @throws IOException
         * @throws CIFSException
         */
        @Test
        void testService_NtlmAuth_Success() throws Exception {
            ntlmServlet.init(servletConfig);
            setupMocksForAuth();
    
            byte[] challenge = new byte[8];
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 21 04:51:33 GMT 2025
    - 11.5K bytes
    - Click Count (0)
  3. guava-tests/test/com/google/common/util/concurrent/ListenableFutureTaskTest.java

                if (throwException) {
                  throw new IllegalStateException("Fail");
                }
                return 25;
              });
    
      @Override
      protected void setUp() throws Exception {
        super.setUp();
    
        exec = newCachedThreadPool();
    
        task.addListener(listenerLatch::countDown, directExecutor());
      }
    
      @Override
      protected void tearDown() throws Exception {
        if (exec != null) {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 4.7K bytes
    - Click Count (0)
  4. .teamcity/scripts/CheckBadMerge.java

            try (BufferedReader br = new BufferedReader(new InputStreamReader(System.in, StandardCharsets.UTF_8))) {
                return br.lines()
                    .map(String::trim)
                    .filter(s -> !s.isEmpty())
                    .collect(Collectors.toList());
            }
        }
    
    Created: Wed Apr 01 11:36:16 GMT 2026
    - Last Modified: Mon Mar 30 16:25:09 GMT 2026
    - 9K bytes
    - Click Count (0)
  5. src/main/java/jcifs/dcerpc/DcerpcHandle.java

                off += fragSize;
            }
            throw new IOException();
        }
    
        /**
         * @param msg
         * @param in
         * @param off
         * @param isDirect
         * @return
         * @throws IOException
         * @throws DcerpcException
         * @throws NdrException
         */
        private byte[] receiveMoreFragments(final DcerpcMessage msg, byte[] in) throws IOException, DcerpcException, NdrException {
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 15.9K bytes
    - Click Count (0)
  6. src/test/java/org/codelibs/core/lang/ModifierUtilTest.java

        /**
         * @throws Exception
         */
        public void testIsPublic() throws Exception {
            final Field f = Hoge.class.getDeclaredField("s");
            assertTrue(ModifierUtil.isPublicStaticFinalField(f));
            final Method m = Hoge.class.getDeclaredMethod("hoge", new Class[] {});
            assertTrue(ModifierUtil.isPublic(m));
        }
    
        /**
         * @throws Exception
         */
    Created: Fri Apr 03 20:58:12 GMT 2026
    - Last Modified: Sat May 10 01:32:17 GMT 2025
    - 2.4K bytes
    - Click Count (0)
  7. src/test/java/org/codelibs/fess/sso/oic/OpenIdConnectAuthenticatorTest.java

        @Test
        public void test_parseJwtClaim_floatValue() throws IOException {
            final String jwtClaim = "{\"score\":95.5}";
            final Map<String, Object> attributes = new HashMap<>();
    
            authenticator.parseJwtClaim(jwtClaim, attributes);
    
            assertEquals(95.5, attributes.get("score"));
        }
    
        @Test
        public void test_parseJwtClaim_emptyObject() throws IOException {
            final String jwtClaim = "{}";
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Jan 15 12:54:47 GMT 2026
    - 11K bytes
    - Click Count (0)
  8. android/guava/src/com/google/common/util/concurrent/ListeningExecutorService.java

       *     completed.
       * @throws RejectedExecutionException {@inheritDoc}
       * @throws NullPointerException if any task is null
       */
      @Override
      <T extends @Nullable Object> List<Future<T>> invokeAll(Collection<? extends Callable<T>> tasks)
          throws InterruptedException;
    
      /**
       * {@inheritDoc}
       *
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sun Dec 22 03:38:46 GMT 2024
    - 4.2K bytes
    - Click Count (0)
  9. guava-tests/test/com/google/common/io/ByteStreamsTest.java

      private static final byte[] PRE_FILLED_100 = newPreFilledByteArray(100);
    
      public void testToByteArray() throws IOException {
        InputStream in = new ByteArrayInputStream(PRE_FILLED_100);
        byte[] b = ByteStreams.toByteArray(in);
        assertThat(b).isEqualTo(PRE_FILLED_100);
      }
    
      public void testToByteArray_emptyStream() throws IOException {
        InputStream in = newTestStream(0);
        byte[] b = ByteStreams.toByteArray(in);
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Mar 17 19:26:39 GMT 2026
    - 22K bytes
    - Click Count (0)
  10. src/test/java/jcifs/smb/CredentialsInternalTest.java

        @Test
        @DisplayName("refresh succeeds when not configured to fail")
        void refresh_success() throws Exception {
            TestCredentials creds = new TestCredentials("Z", false, false, new Subject(), false);
            // Should not throw
            assertDoesNotThrow(creds::refresh);
        }
    
        @Test
        @DisplayName("refresh throws CIFSException when configured to fail")
        void refresh_failure_throws_cifs() {
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 9.9K bytes
    - Click Count (0)
Back to Top