Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 202 for throwing (2.83 sec)

  1. fess-crawler/src/test/java/org/codelibs/fess/crawler/interval/impl/AbstractIntervalControllerTest.java

                fail("Expected CrawlerSystemException to be thrown");
            } catch (final CrawlerSystemException e) {
                // Expected
                assertTrue(e.getMessage().contains("Could not stop a process"));
            }
        }
    
        /**
         * Test CrawlerSystemException is re-thrown when ignoreException = false
         */
        public void test_crawlerSystemExceptionRethrown() {
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Thu Nov 20 08:58:39 UTC 2025
    - 9.8K bytes
    - Viewed (0)
  2. src/test/java/jcifs/smb/DosFileFilterTest.java

            // When calling accept
            // Then an SmbException should be thrown
            SmbException thrown = assertThrows(SmbException.class, () -> {
                dosFileFilter.accept(mockFile);
            });
    
            // and the exception should be the one we configured
            assertTrue(thrown == expectedException);
        }
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 6.2K bytes
    - Viewed (0)
  3. fess-crawler/src/test/java/org/codelibs/fess/crawler/extractor/impl/AbstractExtractorTest.java

                assertEquals("The inputstream is null.", e.getMessage());
                // Note: validateCalled will be false because exception is thrown
                // before the flag can be set, which is the expected behavior
                assertFalse("validateCalled should be false as exception thrown before flag set", extractor.isValidateCalled());
            }
        }
    
        /**
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Mon Nov 24 03:59:47 UTC 2025
    - 8.4K bytes
    - Viewed (0)
  4. src/test/java/jcifs/smb/SmbEndOfFileExceptionTest.java

        /**
         * Ensures the exception is thrown and captured via assertThrows with the right message.
         */
        @Test
        void assertThrowsCapturesExceptionAndMessage() {
            // Act & Assert
            SmbEndOfFileException thrown = assertThrows(SmbEndOfFileException.class, () -> {
                throw new SmbEndOfFileException();
            });
            assertEquals("Unexpectedly reached end of file", thrown.getMessage());
        }
    
        /**
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 2.4K bytes
    - Viewed (0)
  5. src/test/java/jcifs/smb/SmbFileFilterTest.java

            when(smbFile.isDirectory()).thenThrow(boom);
    
            // Act + Assert
            SmbException thrown = assertThrows(SmbException.class, () -> filter.accept(smbFile));
            assertEquals("io error", thrown.getMessage());
            verify(smbFile, times(1)).isDirectory();
            verifyNoMoreInteractions(smbFile);
        }
    
        @Test
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.4K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/core/io/CloseableUtil.java

         */
        protected CloseableUtil() {
        }
    
        private static final Logger logger = Logger.getLogger(CloseableUtil.class);
    
        /**
         * Closes a {@link Closeable}.
         * <p>
         * If an exception is thrown by {@link Closeable#close()}, an error message is logged. The exception is not rethrown. This prevents the original exception from being lost in situations like the following:
         * </p>
         * <pre>
         * InputStream is = ...;
    Registered: Sat Dec 20 08:55:33 UTC 2025
    - Last Modified: Thu Jul 31 08:16:49 UTC 2025
    - 2.5K bytes
    - Viewed (0)
  7. src/test/java/jcifs/pac/PacSignatureTest.java

         */
        @Test
        void testConstructorMalformedData() {
            // Prepare data (only 2 bytes, less than an int)
            byte[] data = new byte[] { 0x01, 0x02 };
    
            // Verify that PACDecodingException is thrown
            assertThrows(PACDecodingException.class, () -> {
                new PacSignature(data);
            });
        }
    
        /**
         * Test constructor with checksum too short for KERB_CHECKSUM_HMAC_MD5.
         */
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.3K bytes
    - Viewed (0)
  8. src/test/java/jcifs/SmbFileHandleTest.java

            smbFileHandle.close(lastWriteTime);
            verify(smbFileHandle, times(1)).close(lastWriteTime);
        }
    
        /**
         * Test close(long) when a CIFSException is thrown.
         *
         * @throws CIFSException
         */
        @Test
        void testCloseWithLastWriteTime_throwsCIFSException() throws CIFSException {
            long lastWriteTime = System.currentTimeMillis();
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.1K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/fess/app/web/admin/dict/stemmeroverride/AdminDictStemmeroverrideAction.java

         *
         * @param pageNumber Optional page number to display (0-based)
         * @param form The search form containing filter criteria
         * @return HTML response showing the stemmer override list
         */
        @Execute
        @Secured({ ROLE, ROLE + VIEW })
        public HtmlResponse list(final OptionalThing<Integer> pageNumber, final SearchForm form) {
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 23.5K bytes
    - Viewed (0)
  10. src/test/java/jcifs/dcerpc/DcerpcBindingTest.java

        @Test
        void testSetOptionEndpointInvalidPipe() {
            String endpoint = "\\pipe\\unknown";
            DcerpcException thrown = assertThrows(DcerpcException.class, () -> {
                dcerpcBinding.setOption("endpoint", endpoint);
            }, "Should throw DcerpcException for unknown pipe endpoint.");
    
            assertTrue(thrown.getMessage().contains("Bad endpoint"), "Exception message should indicate a bad endpoint.");
        }
    
        @Test
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 8.5K bytes
    - Viewed (0)
Back to top