Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for thenThrow (0.49 sec)

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

            responseData.setResponseBody(content);
    
            when(crawlerContainer.getComponent("sitemapsHelper")).thenReturn(sitemapsHelper);
            when(sitemapsHelper.parse(any(InputStream.class))).thenThrow(new RuntimeException("Parse error"));
    
            // Execute and verify RuntimeException is thrown
            try {
                processor.process(responseData);
                fail("Should throw RuntimeException");
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Thu Nov 13 13:29:22 UTC 2025
    - 12K bytes
    - Viewed (0)
Back to top