Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 2,174 for Exception (0.17 sec)

  1. src/test/java/org/codelibs/fess/helper/ProcessHelperTest.java

                // Just verify no exceptions occurred
    
                // Clean up
                processHelper.destroyProcess(sessionId1);
                processHelper.destroyProcess(sessionId2);
    
                // Test passes if no exceptions thrown
                assertTrue(true);
            } catch (Exception e) {
                fail("Unexpected exception: " + e.getMessage());
            }
        }
    
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Jul 12 05:35:01 UTC 2025
    - 15.1K bytes
    - Viewed (0)
  2. src/test/java/org/codelibs/fess/exception/SsoMessageExceptionTest.java

            final Exception cause = new RuntimeException("Test cause");
    
            // Execute
            final SsoMessageException exception = new SsoMessageException(messageCode, null, cause);
    
            // Verify
            assertNotNull(exception);
            assertNull(exception.getMessage());
            assertEquals(cause, exception.getCause());
            assertEquals(messageCode, exception.getMessageCode());
        }
    
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 10.7K bytes
    - Viewed (0)
  3. src/test/java/org/codelibs/fess/exception/InvalidQueryExceptionTest.java

            final Exception cause = new RuntimeException("Underlying error");
    
            // Execute
            final InvalidQueryException exception = new InvalidQueryException(null, message, cause);
    
            // Verify
            assertNotNull(exception);
            assertEquals(message, exception.getMessage());
            assertEquals(cause, exception.getCause());
            assertNull(exception.getMessageCode());
        }
    
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 15.6K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/util/concurrent/SettableFutureTest.java

      }
    
      public void testSetFailure() throws Exception {
        assertTrue(future.setException(new Exception("failure")));
        tester.testFailedFuture("failure");
      }
    
      public void testSetFailureNull() throws Exception {
        assertThrows(NullPointerException.class, () -> future.setException(null));
        assertFalse(future.isDone());
        assertTrue(future.setException(new Exception("failure")));
        tester.testFailedFuture("failure");
      }
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Dec 19 18:03:30 UTC 2024
    - 7.3K bytes
    - Viewed (0)
  5. guava-testlib/src/com/google/common/testing/ClassSanityTester.java

         * parameter, or if the constructor or factory method throws exception.
         *
         * @return this tester
         */
        @CanIgnoreReturnValue
        @SuppressWarnings("CatchingUnchecked") // sneaky checked exception
        public FactoryMethodReturnValueTester testSerializable() throws Exception {
          for (Invokable<?, ?> factory : getFactoriesToTest()) {
            Object instance = instantiate(factory);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Aug 09 01:14:59 UTC 2025
    - 32.5K bytes
    - Viewed (0)
  6. src/test/java/jcifs/smb/SmbTransportInternalTest.java

            assertSame(session, result);
            verify(transport).getSmbSession(eq(ctx), eq(host), eq(domain));
        }
    
        // SMB2 detection: true/false and exception path
        @Test
        @DisplayName("isSMB2 returns true/false and can throw")
        void isSMB2_variants() throws Exception {
            when(transport.isSMB2()).thenReturn(true, false);
            assertTrue(transport.isSMB2());
            assertFalse(transport.isSMB2());
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 12.1K bytes
    - Viewed (0)
  7. src/test/java/org/codelibs/fess/job/AggregateLogJobTest.java

            // Setup mock SearchLogHelper that throws wrapped checked exception
            SearchLogHelper mockSearchLogHelper = new SearchLogHelper() {
                @Override
                public void storeSearchLog() {
                    try {
                        throw new Exception("Checked exception");
                    } catch (Exception e) {
                        throw new RuntimeException("Wrapped: " + e.getMessage(), e);
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 12.1K bytes
    - Viewed (0)
  8. src/test/java/jcifs/netbios/NameServiceClientImplTest.java

            }, "Should throw UnknownHostException for non-existent NetBIOS name with type");
    
            // Verify the exception message indicates name resolution failure
            assertTrue(exception.getMessage().contains("NONEXISTENT") || exception.getMessage().contains("unknown")
                    || exception.getMessage().contains("not found"), "Exception message should indicate name resolution failure");
        }
    
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 11K bytes
    - Viewed (0)
  9. src/test/java/org/codelibs/core/misc/AssertionUtilTest.java

    import static org.codelibs.core.misc.AssertionUtil.assertState;
    import static org.hamcrest.CoreMatchers.is;
    
    import org.codelibs.core.exception.ClIllegalArgumentException;
    import org.codelibs.core.exception.ClIllegalStateException;
    import org.codelibs.core.exception.ClIndexOutOfBoundsException;
    import org.codelibs.core.exception.NullArgumentException;
    import org.junit.Rule;
    import org.junit.Test;
    import org.junit.rules.ExpectedException;
    
    /**
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Sat May 10 01:32:17 UTC 2025
    - 3K bytes
    - Viewed (0)
  10. src/test/java/org/codelibs/core/convert/CalendarConversionUtilTest.java

         */
        @Rule
        public ExpectedException exception = ExpectedException.none();
    
        /**
         * @throws Exception
         */
        @Before
        public void setUp() throws Exception {
            TimeZone.setDefault(TimeZone.getTimeZone("GMT"));
        }
    
        /**
         * @throws Exception
         */
        @After
        public void tearDown() throws Exception {
            TimeZone.setDefault(null);
        }
    
        /**
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Sat May 10 01:32:17 UTC 2025
    - 2.4K bytes
    - Viewed (0)
Back to top