Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for getSuppressed (0.05 sec)

  1. 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)
  2. 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)
  3. 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. 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)
  5. 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)
  6. 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)
  7. 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)
  8. 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)
  9. android/guava-tests/test/com/google/common/util/concurrent/ServiceManagerTest.java

        assertThat(e)
            .hasMessageThat()
            .contains("Expected to be healthy after starting. The following services are not running:");
    
        Throwable[] suppressed = e.getSuppressed();
        assertThat(suppressed).hasLength(2);
        assertThat(suppressed[0]).hasCauseThat().isInstanceOf(IllegalStateException.class);
        assertThat(suppressed[0]).hasCauseThat().hasMessageThat().isEqualTo("run failure");
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Jul 16 20:34:52 UTC 2025
    - 25.5K bytes
    - Viewed (0)
Back to top