Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 210 for suppressed (0.06 sec)

  1. android/guava-tests/test/com/google/common/io/CloserTest.java

        private final List<Suppression> suppressions = Lists.newArrayList();
    
        @Override
        public void suppress(Closeable closeable, Throwable thrown, Throwable suppressed) {
          suppressions.add(new Suppression(closeable, thrown, suppressed));
        }
      }
    
      /** Record of a call to suppress. */
      private static class Suppression {
        private final Closeable closeable;
        private final Throwable thrown;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue May 07 15:26:58 UTC 2024
    - 11.8K bytes
    - Viewed (0)
  2. guava/src/com/google/common/io/Closer.java

      }
    
      @VisibleForTesting final Suppressor suppressor;
    
      // only need space for 2 elements in most cases, so try to use the smallest array possible
      private final Deque<Closeable> stack = new ArrayDeque<>(4);
      @CheckForNull private Throwable thrown;
    
      @VisibleForTesting
      Closer(Suppressor suppressor) {
        this.suppressor = checkNotNull(suppressor); // checkNotNull to satisfy null tests
      }
    
      /**
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue May 07 15:26:58 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/io/CloserTest.java

        private final List<Suppression> suppressions = Lists.newArrayList();
    
        @Override
        public void suppress(Closeable closeable, Throwable thrown, Throwable suppressed) {
          suppressions.add(new Suppression(closeable, thrown, suppressed));
        }
      }
    
      /** Record of a call to suppress. */
      private static class Suppression {
        private final Closeable closeable;
        private final Throwable thrown;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue May 07 15:26:58 UTC 2024
    - 11.8K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/io/ByteSourceTest.java

      public void testCopyExceptions() {
        // test that exceptions are suppressed
    
        for (ByteSource in : BROKEN_SOURCES) {
          int suppressed = runSuppressionFailureTest(in, newNormalByteSink());
          assertEquals(0, suppressed);
    
          suppressed = runSuppressionFailureTest(in, BROKEN_CLOSE_SINK);
          assertEquals((in == BROKEN_OPEN_SOURCE) ? 0 : 1, suppressed);
        }
    
        for (ByteSink out : BROKEN_SINKS) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:26:48 UTC 2024
    - 15.4K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/io/Closer.java

      }
    
      @VisibleForTesting final Suppressor suppressor;
    
      // only need space for 2 elements in most cases, so try to use the smallest array possible
      private final Deque<Closeable> stack = new ArrayDeque<>(4);
      @CheckForNull private Throwable thrown;
    
      @VisibleForTesting
      Closer(Suppressor suppressor) {
        this.suppressor = checkNotNull(suppressor); // checkNotNull to satisfy null tests
      }
    
      /**
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue May 07 15:26:58 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/io/CharSourceTest.java

      public void testCopyExceptions() {
        // test that exceptions are suppressed
    
        for (CharSource in : BROKEN_SOURCES) {
          int suppressed = runSuppressionFailureTest(in, newNormalCharSink());
          assertEquals(0, suppressed);
    
          suppressed = runSuppressionFailureTest(in, BROKEN_CLOSE_SINK);
          assertEquals((in == BROKEN_OPEN_SOURCE) ? 0 : 1, suppressed);
        }
    
        for (CharSink out : BROKEN_SINKS) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 31 14:20:11 UTC 2024
    - 11.4K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/io/CharSourceTest.java

      public void testCopyExceptions() {
        // test that exceptions are suppressed
    
        for (CharSource in : BROKEN_SOURCES) {
          int suppressed = runSuppressionFailureTest(in, newNormalCharSink());
          assertEquals(0, suppressed);
    
          suppressed = runSuppressionFailureTest(in, BROKEN_CLOSE_SINK);
          assertEquals((in == BROKEN_OPEN_SOURCE) ? 0 : 1, suppressed);
        }
    
        for (CharSink out : BROKEN_SINKS) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue May 07 15:26:58 UTC 2024
    - 11.4K bytes
    - Viewed (0)
  8. okhttp/src/test/java/okhttp3/CallKotlinTest.kt

          client.newCall(request).execute()
        }.also { expected ->
          expected.assertSuppressed {
            val suppressed = it.single()
            assertThat(suppressed).isInstanceOf(IOException::class.java)
            assertThat(suppressed).isNotSameAs(expected)
          }
        }
      }
    
      /** Confirm suppressed exceptions that occur after connecting are returned. */
      @Test fun httpExceptionsAreReturnedAsSuppressed() {
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Jan 20 10:30:28 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/base/AndroidIncompatible.java

     *   <li>An annotation named just "Suppress" might suggest to users that the test is suppressed
     *       under all environments. We could fight this by fully qualifying the annotation, but the
     *       result will be verbose and attention-grabbing.
     *   <li>We need to be careful about how we suppress {@code suite()} methods in {@code common.io}.
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Jul 07 15:40:13 UTC 2023
    - 3.9K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/io/ByteSourceTest.java

      public void testCopyExceptions() {
        // test that exceptions are suppressed
    
        for (ByteSource in : BROKEN_SOURCES) {
          int suppressed = runSuppressionFailureTest(in, newNormalByteSink());
          assertEquals(0, suppressed);
    
          suppressed = runSuppressionFailureTest(in, BROKEN_CLOSE_SINK);
          assertEquals((in == BROKEN_OPEN_SOURCE) ? 0 : 1, suppressed);
        }
    
        for (ByteSink out : BROKEN_SINKS) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:26:48 UTC 2024
    - 15.4K bytes
    - Viewed (0)
Back to top