Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 448 for throwing (0.04 sec)

  1. src/test/java/org/codelibs/fess/exception/UserRoleLoginExceptionTest.java

            UserRoleLoginException exception = new UserRoleLoginException(RootAction.class);
            assertNull(exception.getCause());
        }
    
        public void test_throwAndCatch() {
            // Test throwing and catching the exception
            try {
                throw new UserRoleLoginException(RootAction.class);
            } catch (UserRoleLoginException e) {
                assertEquals(RootAction.class, e.getActionClass());
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 4.8K bytes
    - Viewed (0)
  2. guava-testlib/src/com/google/common/collect/testing/MinimalIterable.java

     * second invocation, so implementors have made various choices, including:
     *
     * <ul>
     *   <li>returning the same iterator again
     *   <li>throwing an exception of some kind
     *   <li>or the usual, <i>robust</i> behavior, which all known {@link Collection} implementations
     *       have, of returning a new, independent iterator
     * </ul>
     *
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  3. src/test/java/org/codelibs/fess/exception/UnsupportedSearchExceptionTest.java

        }
    
        public void test_throwAndCatch() {
            // Test throwing and catching the exception
            String expectedMessage = "Thrown exception";
    
            try {
                throw new UnsupportedSearchException(expectedMessage);
                // fail("Exception was not thrown");
            } catch (UnsupportedSearchException e) {
                assertEquals(expectedMessage, e.getMessage());
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 8.4K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/smb2/session/Smb2LogoffResponseTest.java

                assertArrayEquals(original, buffer, "Buffer must remain unchanged");
            }
    
            @Test
            @DisplayName("Handles null destination without throwing and returns 0")
            void allowsNullBuffer() {
                // Arrange
                Smb2LogoffResponse resp = newResponse();
    
                // Act & Assert
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 4.7K bytes
    - Viewed (0)
  5. src/test/java/org/codelibs/fess/exception/ContentNotFoundExceptionTest.java

            // The exception should be serializable since it extends RuntimeException
            assertTrue(exception instanceof java.io.Serializable);
        }
    
        public void test_throwAndCatch() {
            // Test throwing and catching the exception
            String parentUrl = "http://example.com/parent";
            String url = "http://example.com/child";
    
            try {
                throw new ContentNotFoundException(parentUrl, url);
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 7.8K bytes
    - Viewed (0)
  6. android/guava-testlib/src/com/google/common/testing/EquivalenceTester.java

      public EquivalenceTester<T> addEquivalenceGroup(Iterable<T> group) {
        delegate.addRelatedGroup(group);
        items.addAll(ImmutableList.copyOf(group));
        return this;
      }
    
      /** Run tests on equivalence methods, throwing a failure on an invalid test */
      @CanIgnoreReturnValue
      public EquivalenceTester<T> test() {
        for (int run = 0; run < REPETITIONS; run++) {
          testItems();
          delegate.test();
        }
        return this;
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Aug 09 01:14:59 UTC 2025
    - 4.1K bytes
    - Viewed (0)
  7. src/test/java/org/codelibs/fess/exception/LdapConfigurationExceptionTest.java

            assertNotSame(exception1, exception2);
            assertNotSame(exception2, exception3);
            assertNotSame(exception1, exception3);
        }
    
        public void test_throwAndCatch() {
            // Test throwing and catching the exception
            String errorMessage = "LDAP server not reachable";
    
            try {
                throw new LdapConfigurationException(errorMessage);
            } catch (LdapConfigurationException e) {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 7.5K bytes
    - Viewed (0)
  8. src/test/java/org/codelibs/fess/thumbnail/impl/EmptyGeneratorTest.java

            emptyGenerator.setName("empty");
            String path = "/path/to/thumbnail.jpg";
    
            // Since createTask requires FessConfig, it may not work properly
            // We test that the method can be called without throwing exceptions
            try {
                emptyGenerator.createTask(path, docMap);
            } catch (Exception e) {
                // Expected when FessConfig is not available
            }
        }
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 6.3K bytes
    - Viewed (0)
  9. src/test/java/org/codelibs/fess/mylasta/direction/sponsor/FessCurtainFinallyHookTest.java

            shutdownMethod.setAccessible(true);
    
            // Invoke the method
            shutdownMethod.invoke(curtainFinallyHook);
    
            // Method should complete without throwing exceptions to the caller
            assertTrue(true);
        }
    
        // Test behavior when an exception occurs during reflection
        public void test_shutdownCommonsHttpClient_withException() throws Exception {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 8.7K bytes
    - Viewed (0)
  10. src/test/java/org/codelibs/fess/exception/ScriptEngineExceptionTest.java

            assertEquals(message, exception.getMessage());
            assertNull(exception.getCause());
        }
    
        public void test_throwAndCatch() {
            // Test throwing and catching the exception
            String message = "Thrown exception test";
    
            try {
                throw new ScriptEngineException(message);
            } catch (ScriptEngineException e) {
                assertEquals(message, e.getMessage());
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 7.5K bytes
    - Viewed (0)
Back to top