Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 84 for captured (0.07 seconds)

  1. src/test/java/org/codelibs/fess/ds/DataStoreTest.java

            DataStoreParams captured = capturedParams.get();
            assertNotNull(captured);
            assertEquals("test-value", captured.getAsString("string"));
            assertEquals(42, captured.get("integer"));
            assertEquals(123456789L, captured.get("long"));
            assertEquals(true, captured.get("boolean"));
            assertEquals(3.14, captured.get("double"));
            assertNotNull(captured.get("map"));
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Wed Jan 14 14:29:07 GMT 2026
    - 13.2K bytes
    - Click Count (0)
  2. src/main/java/org/codelibs/fess/auth/chain/CommandChain.java

                        throw new CrawlerSystemException(e);
                    }
                }
            }
    
            /**
             * Gets the captured output as a single string.
             * @return The captured output with newlines.
             */
            public String getOutput() {
                final StringBuilder buf = new StringBuilder(100);
                for (final String value : list) {
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Nov 28 16:29:12 GMT 2025
    - 14.4K bytes
    - Click Count (0)
  3. src/test/java/jcifs/smb/SmbCopyUtilTest.java

                // Give the writer thread time to process and set exception
                w.wait(100);
            }
    
            // Wait a bit more to ensure exception is captured
            Thread.sleep(100);
    
            // Act + Assert: checkException should throw the SmbException captured by the thread
            assertThrows(SmbException.class, w::checkException);
    
            // Stop the thread
            synchronized (w) {
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 12.1K bytes
    - Click Count (0)
  4. src/test/java/jcifs/smb/SmbFileInputStreamTest.java

                    fail("Expected IOException due to short-circuit");
                } catch (IOException expected) {
                    // expected
                }
    
                // Assert captured request parameters
                verify(mockTree).send(cap.capture(), any(jcifs.internal.CommonServerMessageBlockResponse.class), any(RequestParam.class));
                jcifs.internal.smb1.com.SmbComReadAndX req = cap.getValue();
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 07:14:38 GMT 2025
    - 12.8K bytes
    - Click Count (0)
  5. build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/test/ErrorReportingTestListener.java

        }
    
        @Override
        public void afterSuite(final TestDescriptor suite, TestResult result) {
            Descriptor descriptor = Descriptor.of(suite);
    
            try {
                // if the test suite failed, report all captured output
                if (result.getResultType().equals(TestResult.ResultType.FAILURE)) {
                    EventWriter eventWriter = eventWriters.get(descriptor);
    
                    if (eventWriter != null) {
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Tue Jun 01 09:19:30 GMT 2021
    - 10.7K bytes
    - Click Count (0)
  6. src/test/java/jcifs/smb/SmbTransportInternalTest.java

            ArgumentCaptor<Integer> rnCap = ArgumentCaptor.forClass(Integer.class);
    
            verify(transport).getDfsReferrals(eq(ctx), nameCap.capture(), hostCap.capture(), domCap.capture(), rnCap.capture());
            assertEquals(name, nameCap.getValue());
            assertEquals(host, hostCap.getValue());
            assertEquals(domain, domCap.getValue());
            assertEquals(rn, rnCap.getValue());
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 07:14:38 GMT 2025
    - 12.1K bytes
    - Click Count (0)
  7. src/test/java/org/codelibs/fess/exception/SsoLoginExceptionTest.java

            assertTrue(exception instanceof Exception);
            assertTrue(exception instanceof Throwable);
        }
    
        @Test
        public void test_stackTrace() {
            // Test that stack trace is properly captured
            SsoLoginException exception = new SsoLoginException("Stack trace test");
            StackTraceElement[] stackTrace = exception.getStackTrace();
    
            assertNotNull(stackTrace);
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 14.7K bytes
    - Click Count (0)
  8. src/test/java/org/codelibs/fess/util/LogNotificationAppenderTest.java

            final LogNotificationAppender warnAppender = LogNotificationAppender.createAppender("testWarn", "WARN", null, null);
            final LogEvent event = createLogEvent(Level.ERROR, "org.codelibs.fess.test", "error captured by warn appender");
            warnAppender.append(event);
            final List<LogNotificationEvent> events = ComponentUtil.getLogNotificationHelper().drainAll();
            assertEquals(1, events.size());
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Mar 26 14:36:23 GMT 2026
    - 10.7K bytes
    - Click Count (0)
  9. src/test/java/org/codelibs/fess/score/ScoreUpdaterTest.java

            NullPointerScoreBooster booster = new NullPointerScoreBooster();
            scoreUpdater.addScoreBooster(booster);
    
            String result = scoreUpdater.execute();
            // NullPointerException message should be captured
            assertTrue(result.contains("null") || result.contains("NullPointer"));
        }
    
        // Test with negative priority
        @Test
        public void test_addScoreBooster_negativePriority() {
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Wed Jan 14 14:29:07 GMT 2026
    - 10.5K bytes
    - Click Count (0)
  10. build-tools-internal/src/main/groovy/org/elasticsearch/gradle/internal/test/AntFixture.groovy

            }
            return commandString
        }
    
        /**
         * Writes a script to run the real executable, so that stdout/stderr can be captured.
         * TODO: this could be removed if we do use our own ProcessBuilder and pump output from the process
         */
        private void writeWrapperScript(String executable) {
            wrapperScript.parentFile.mkdirs()
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Tue Jun 01 09:19:30 GMT 2021
    - 10.1K bytes
    - Click Count (0)
Back to Top