Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 411 for fail (0.1 sec)

  1. fess-crawler/src/test/java/org/codelibs/fess/crawler/processor/impl/SitemapsResponseProcessorTest.java

                when(sitemapsHelper.parse(any(InputStream.class))).thenReturn(sitemapSet);
            } catch (Exception e) {
                fail("Should not throw exception in test setup");
            }
    
            // Execute and verify ChildUrlsException is thrown
            try {
                processor.process(responseData);
                fail("Should throw ChildUrlsException");
            } catch (ChildUrlsException e) {
                // Expected exception
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Thu Nov 13 13:29:22 UTC 2025
    - 12K bytes
    - Viewed (0)
  2. fess-crawler/src/test/java/org/codelibs/fess/net/protocol/gcs/HandlerTest.java

            // First call should fail (no project ID set)
            try {
                conn.connect();
                fail("Should throw IOException");
            } catch (IOException e) {
                assertTrue(e.getMessage().contains("GCS_PROJECT_ID is blank"));
            }
    
            // Second call should also fail with the same error
            try {
                conn.connect();
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Thu Dec 11 08:38:29 UTC 2025
    - 14.1K bytes
    - Viewed (0)
  3. src/test/java/jcifs/smb/SmbTransportPoolImplTest.java

            // Then: Should connect to IPC$ share
            verify(tree).connectLogon(ctx);
        }
    
        @Test
        @DisplayName("Should sort addresses by fail count and failover")
        void testFailoverWithFailCounts() throws Exception {
            // Given: Multiple addresses with different fail counts
            Address addr1 = mock(Address.class);
            when(addr1.getHostAddress()).thenReturn("10.0.0.1");
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 19.2K bytes
    - Viewed (0)
  4. fess-crawler/src/test/java/org/codelibs/fess/crawler/client/s3/S3ClientTest.java

                fail();
            } catch (ChildUrlsException e) {
                String[] values = e.getChildUrlList().stream().map(d -> d.getUrl()).sorted().toArray(n -> new String[n]);
                assertEquals(0, values.length);
            }
            try (final ResponseData responseData = s3Client.doGet("")) {
                fail();
            } catch (CrawlerSystemException e) {
                // nothing
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Thu Dec 11 07:57:44 UTC 2025
    - 20.5K bytes
    - Viewed (0)
  5. fess-crawler/src/test/java/org/codelibs/fess/crawler/extractor/impl/AbstractExtractorTest.java

                extractor.testValidateInputStream(null);
                fail("Expected CrawlerSystemException");
            } catch (final CrawlerSystemException e) {
                // Verify it's exactly CrawlerSystemException, not a subclass
                assertEquals("Should throw CrawlerSystemException", CrawlerSystemException.class, e.getClass());
            } catch (final Exception e) {
                fail("Should throw CrawlerSystemException, not " + e.getClass().getName());
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Mon Nov 24 03:59:47 UTC 2025
    - 8.4K bytes
    - Viewed (0)
  6. src/test/java/org/codelibs/fess/suggest/settings/BadWordSettingsTest.java

            } catch (IllegalArgumentException e) {
                fail();
            }
    
            try {
                settings.badword().add("");
                fail();
            } catch (IllegalArgumentException e) {
                assertTrue(true);
            }
    
            try {
                settings.badword().add("aaaa bbb");
                fail();
            } catch (IllegalArgumentException e) {
                assertTrue(true);
    Registered: Sat Dec 20 13:04:59 UTC 2025
    - Last Modified: Sun Nov 23 13:04:17 UTC 2025
    - 4.2K bytes
    - Viewed (0)
  7. src/test/java/org/codelibs/curl/CurlResponseTest.java

            try {
                response.getContentAsStream();
                fail("Expected CurlException");
            } catch (CurlException e) {
                assertTrue(e.getMessage().contains("The content does not exist"));
                assertSame(exception, e.getCause());
            } catch (IOException e) {
                fail("Should throw CurlException, not IOException");
            }
        }
    
        @Test
    Registered: Sat Dec 20 09:13:53 UTC 2025
    - Last Modified: Thu Nov 20 13:34:13 UTC 2025
    - 12.5K bytes
    - Viewed (0)
  8. fess-crawler/src/test/java/org/codelibs/fess/crawler/client/AbstractCrawlerClientTest.java

            try {
                client.checkMaxContentLength(responseData);
                fail();
            } catch (MaxLengthExceededException e) {
                // ok
            }
    
            responseData.setContentLength(1000000000L);
            try {
                client.checkMaxContentLength(responseData);
                fail();
            } catch (MaxLengthExceededException e) {
                // ok
            }
    
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Sat Mar 15 06:52:00 UTC 2025
    - 3K bytes
    - Viewed (0)
  9. src/test/java/jcifs/smb/SmbPipeOutputStreamTest.java

            // Arrange
            SmbPipeOutputStream out = newStream();
            CIFSException boom = new CIFSException("tree-fail");
            when(handle.ensureTreeConnected()).thenThrow(boom);
    
            // Act + Assert
            CIFSException ex = assertThrows(CIFSException.class, out::ensureTreeConnected);
            assertEquals("tree-fail", ex.getMessage());
            verify(handle, times(1)).ensureTreeConnected();
        }
    
        @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)
  10. src/test/java/jcifs/util/SmbCircuitBreakerTest.java

        @Test
        public void testFailureThresholdOpensCircuit() {
            // Fail 3 times to open circuit
            for (int i = 0; i < 3; i++) {
                final int index = i;
                try {
                    circuitBreaker.executeWithCircuitBreaker(() -> {
                        throw new RuntimeException("Test failure " + index);
                    });
                    fail("Should have thrown exception");
                } catch (CIFSException e) {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 23.2K bytes
    - Viewed (0)
Back to top