Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for TestCloseable (0.2 sec)

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

      }
    
      public void testNoExceptionsThrown() throws IOException {
        Closer closer = new Closer(suppressor);
    
        TestCloseable c1 = closer.register(TestCloseable.normal());
        TestCloseable c2 = closer.register(TestCloseable.normal());
        TestCloseable c3 = closer.register(TestCloseable.normal());
    
        assertFalse(c1.isClosed());
        assertFalse(c2.isClosed());
        assertFalse(c3.isClosed());
    
        closer.close();
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Mar 06 15:15:46 GMT 2024
    - 13.6K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/util/concurrent/AbstractClosingFutureTest.java

      final ExecutorService closingExecutor = newSingleThreadExecutor();
    
      final TestCloseable closeable1 = new TestCloseable("closeable1");
      final TestCloseable closeable2 = new TestCloseable("closeable2");
      final TestCloseable closeable3 = new TestCloseable("closeable3");
      final TestCloseable closeable4 = new TestCloseable("closeable4");
    
      final Waiter waiter = new Waiter();
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 17:15:24 GMT 2024
    - 75.3K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/io/CloserTest.java

      }
    
      public void testNoExceptionsThrown() throws IOException {
        Closer closer = new Closer(suppressor);
    
        TestCloseable c1 = closer.register(TestCloseable.normal());
        TestCloseable c2 = closer.register(TestCloseable.normal());
        TestCloseable c3 = closer.register(TestCloseable.normal());
    
        assertFalse(c1.isClosed());
        assertFalse(c2.isClosed());
        assertFalse(c3.isClosed());
    
        closer.close();
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Mar 06 15:15:46 GMT 2024
    - 13.6K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/util/concurrent/AbstractClosingFutureTest.java

      final ExecutorService closingExecutor = newSingleThreadExecutor();
    
      final TestCloseable closeable1 = new TestCloseable("closeable1");
      final TestCloseable closeable2 = new TestCloseable("closeable2");
      final TestCloseable closeable3 = new TestCloseable("closeable3");
      final TestCloseable closeable4 = new TestCloseable("closeable4");
    
      final Waiter waiter = new Waiter();
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 22 17:15:24 GMT 2024
    - 74.7K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/util/concurrent/ClosingFutureFinishToFutureTest.java

      void assertBecomesCanceled(ClosingFuture<?> closingFuture) throws ExecutionException {
        assertThatFutureBecomesCancelled(closingFuture.finishToFuture());
      }
    
      @Override
      void cancelFinalStepAndWait(ClosingFuture<TestCloseable> closingFuture) {
        assertThat(closingFuture.finishToFuture().cancel(false)).isTrue();
        waitUntilClosed(closingFuture);
        futureCancelled.countDown();
      }
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 3.7K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/util/concurrent/ClosingFutureFinishToValueAndCloserTest.java

        if (valueAndCloser != null) {
          valueAndCloser.closeAsync();
        }
        super.waitUntilClosed(closingFuture);
      }
    
      @Override
      void cancelFinalStepAndWait(ClosingFuture<TestCloseable> closingFuture) {
        assertThat(closingFuture.cancel(false)).isTrue();
        ValueAndCloser<?> unused = finishToValueAndCloser(closingFuture);
        waitUntilClosed(closingFuture);
        futureCancelled.countDown();
      }
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 5.7K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/util/concurrent/ClosingFutureFinishToFutureTest.java

      void assertBecomesCanceled(ClosingFuture<?> closingFuture) throws ExecutionException {
        assertThatFutureBecomesCancelled(closingFuture.finishToFuture());
      }
    
      @Override
      void cancelFinalStepAndWait(ClosingFuture<TestCloseable> closingFuture) {
        assertThat(closingFuture.finishToFuture().cancel(false)).isTrue();
        waitUntilClosed(closingFuture);
        futureCancelled.countDown();
      }
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 3.7K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/util/concurrent/ClosingFutureFinishToValueAndCloserTest.java

        if (valueAndCloser != null) {
          valueAndCloser.closeAsync();
        }
        super.waitUntilClosed(closingFuture);
      }
    
      @Override
      void cancelFinalStepAndWait(ClosingFuture<TestCloseable> closingFuture) {
        assertThat(closingFuture.cancel(false)).isTrue();
        ValueAndCloser<?> unused = finishToValueAndCloser(closingFuture);
        waitUntilClosed(closingFuture);
        futureCancelled.countDown();
      }
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 5.7K bytes
    - Viewed (0)
Back to top