Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for getSuppressed (0.07 sec)

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

            RuntimeException suppressed = new RuntimeException("Suppressed exception");
            exception.addSuppressed(suppressed);
            assertEquals(1, exception.getSuppressed().length);
            assertEquals(suppressed, exception.getSuppressed()[0]);
        }
    
        public void test_constructor_withSuppressionDisabled() {
            // Test protected constructor with suppression disabled
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 7.4K bytes
    - Viewed (0)
  2. src/test/java/org/codelibs/fess/exception/ContentNotFoundExceptionTest.java

            // Verify that suppression is disabled
            try {
                exception.addSuppressed(new Exception("Test suppressed"));
                // If suppression is disabled, getSuppressed should return empty array
                assertEquals(0, exception.getSuppressed().length);
            } catch (Exception e) {
                // If an exception is thrown when trying to add suppressed, that's also valid
                // since suppression is disabled
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 7.8K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/io/CloserTest.java

          } finally {
            assertThat(thrownException.getSuppressed()).isEmpty();
            closer.close();
          }
        } catch (IOException expected) {
          assertSame(thrownException, expected);
        }
    
        assertTrue(c1.isClosed());
        assertTrue(c2.isClosed());
    
        ImmutableSet<Throwable> suppressed = ImmutableSet.copyOf(thrownException.getSuppressed());
        assertEquals(2, suppressed.size());
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Jul 16 17:42:14 UTC 2025
    - 11.8K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/io/CloserTest.java

          } finally {
            assertThat(thrownException.getSuppressed()).isEmpty();
            closer.close();
          }
        } catch (IOException expected) {
          assertSame(thrownException, expected);
        }
    
        assertTrue(c1.isClosed());
        assertTrue(c2.isClosed());
    
        ImmutableSet<Throwable> suppressed = ImmutableSet.copyOf(thrownException.getSuppressed());
        assertEquals(2, suppressed.size());
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Jul 16 17:42:14 UTC 2025
    - 11.8K bytes
    - Viewed (0)
  5. fess-crawler/src/test/java/org/codelibs/fess/crawler/exception/CrawlerSystemExceptionTest.java

            Exception suppressed2 = new IOException("Suppressed 2");
            mainException.addSuppressed(suppressed1);
            mainException.addSuppressed(suppressed2);
    
            Throwable[] suppressedExceptions = mainException.getSuppressed();
            assertEquals(2, suppressedExceptions.length);
            assertSame(suppressed1, suppressedExceptions[0]);
            assertSame(suppressed2, suppressedExceptions[1]);
        }
    
        /**
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Wed Sep 03 14:42:53 UTC 2025
    - 20K bytes
    - Viewed (0)
  6. src/test/java/jcifs/RuntimeCIFSExceptionTest.java

            // When
            mainException.addSuppressed(suppressedException);
    
            // Then
            Throwable[] suppressed = mainException.getSuppressed();
            assertEquals(1, suppressed.length);
            assertEquals(suppressedException, suppressed[0]);
        }
    
        @Test
        @DisplayName("Should provide correct cause for constructor with cause only")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 10.2K bytes
    - Viewed (0)
  7. src/test/java/org/codelibs/fess/exception/ResultOffsetExceededExceptionTest.java

            mainException.addSuppressed(suppressedException);
    
            Throwable[] suppressed = mainException.getSuppressed();
            assertNotNull(suppressed);
            assertEquals(1, suppressed.length);
            assertEquals(suppressedException, suppressed[0]);
            assertEquals("Suppressed exception", suppressed[0].getMessage());
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 9.6K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/io/CharSourceTest.java

       */
      private static int runSuppressionFailureTest(CharSource in, CharSink out) {
        try {
          in.copyTo(out);
          fail();
        } catch (IOException expected) {
          return expected.getSuppressed().length;
        }
        throw new AssertionError(); // can't happen
      }
    
      private static CharSource newNormalCharSource() {
        return CharSource.wrap("ABC");
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 17:27:14 UTC 2025
    - 11.5K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/util/concurrent/AbstractExecutionThreadServiceTest.java

        assertThat(expected).hasCauseThat().hasMessageThat().isEqualTo("kaboom!");
        assertTrue(service.shutDownCalled);
        assertEquals(Service.State.FAILED, service.state());
        assertThat(expected.getCause().getSuppressed()[0]).hasMessageThat().isEqualTo("double kaboom!");
      }
    
      private class ThrowOnRunService extends AbstractExecutionThreadService {
        private boolean shutDownCalled = false;
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Fri Jul 11 18:52:30 UTC 2025
    - 12.8K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/io/CharSourceTest.java

       */
      private static int runSuppressionFailureTest(CharSource in, CharSink out) {
        try {
          in.copyTo(out);
          fail();
        } catch (IOException expected) {
          return expected.getSuppressed().length;
        }
        throw new AssertionError(); // can't happen
      }
    
      private static CharSource newNormalCharSource() {
        return CharSource.wrap("ABC");
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 17:27:14 UTC 2025
    - 11.5K bytes
    - Viewed (0)
Back to top