Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 216 for fail (0.04 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. 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)
  6. 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)
  7. fess-crawler/src/test/java/org/codelibs/fess/crawler/client/smb1/SmbClientTest.java

                assertEquals(5, responseData.getContentLength());
            }
    
            try {
                smbClient.doGet(baseUrl);
                fail();
            } catch (final ChildUrlsException e) {
                String[] urls = e.getChildUrlList().stream().map(r -> r.getUrl()).sorted().toArray(String[]::new);
                assertEquals(3, urls.length);
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Tue Sep 23 06:42:59 UTC 2025
    - 30K bytes
    - Viewed (0)
  8. fess-crawler/src/test/java/org/codelibs/fess/crawler/client/storage/StorageClientTest.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 = storageClient.doGet("")) {
                fail();
            } catch (CrawlerSystemException e) {
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Mon Nov 24 03:59:47 UTC 2025
    - 20.9K bytes
    - Viewed (0)
  9. fess-crawler/src/test/java/org/codelibs/fess/crawler/client/gcs/GcsClientTest.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 = gcsClient.doGet("")) {
                fail();
            } catch (CrawlerSystemException e) {
                // nothing
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Thu Dec 11 08:38:29 UTC 2025
    - 19.6K bytes
    - Viewed (0)
  10. fess-crawler/src/test/java/org/codelibs/fess/net/protocol/storage/HandlerTest.java

            // First call should fail (no endpoint set)
            try {
                conn.connect();
                fail("Should throw IOException");
            } catch (IOException e) {
                assertTrue(e.getMessage().contains("endpoint is blank"));
            }
    
            // Second call should also fail with the same error
            try {
                conn.connect();
                fail("Should throw IOException");
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Thu Dec 11 08:38:29 UTC 2025
    - 14.4K bytes
    - Viewed (0)
Back to top