Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 2,192 for expect (0.18 sec)

  1. guava-tests/test/com/google/common/util/concurrent/UninterruptibleFutureTest.java

         *   available.
         * 3. We expect the client's get() to throw an InterruptedException.
         * 4. We expect the client thread's interrupt state to be false.
         * 5. The client thread again makes a blocking call to get().
         * 6. Now the result becomes available.
         * 7. We expect get() to return this result.
         * 8. We expect the test thread's interrupt state to be false.
         */
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 9.1K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/io/LineBufferTest.java

      }
    
      private static final int[] CHUNK_SIZES = {1, 2, 3, Integer.MAX_VALUE};
    
      private static void bufferHelper(String input, String... expect) throws IOException {
    
        List<String> expectProcess = Arrays.asList(expect);
        List<String> expectRead =
            Lists.transform(
                expectProcess,
                new Function<String, String>() {
                  @Override
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 4.7K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/util/concurrent/AggregateFutureState.java

        }
    
        @Override
        void compareAndSetSeenExceptions(
            AggregateFutureState<?> state, @CheckForNull Set<Throwable> expect, Set<Throwable> update) {
          seenExceptionsUpdater.compareAndSet(state, expect, update);
        }
    
        @Override
        int decrementAndGetRemainingCount(AggregateFutureState<?> state) {
          return remainingCountUpdater.decrementAndGet(state);
        }
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Dec 14 20:35:03 GMT 2023
    - 8.5K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/io/FlushablesTest.java

        // make sure that no exception is thrown by flushQuietly when the mock does
        // throw an exception on flush.
        setupFlushable(true);
        Flushables.flushQuietly(mockFlushable);
      }
    
      // Set up a flushable to expect to be flushed, and optionally to
      // throw an exception.
      private void setupFlushable(boolean shouldThrowOnFlush) throws IOException {
        mockFlushable = mock(Flushable.class);
        if (shouldThrowOnFlush) {
          doThrow(
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 3.3K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/util/concurrent/CallablesTest.java

        Callable<Object> callable = Callables.returning(value);
        assertSame(value, callable.call());
        // Expect the same value on subsequent calls
        assertSame(value, callable.call());
      }
    
      @J2ktIncompatible
      @GwtIncompatible
      public void testAsAsyncCallable() throws Exception {
        final String expected = "MyCallableString";
        Callable<String> callable =
            new Callable<String>() {
              @Override
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Tue Feb 13 14:28:25 GMT 2024
    - 5.4K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/io/CloseablesTest.java

        Closeables.closeQuietly((InputStream) null);
      }
    
      public void testCloseQuietlyNull_reader() {
        Closeables.closeQuietly((Reader) null);
      }
    
      // Set up a closeable to expect to be closed, and optionally to throw an
      // exception.
      private void setupCloseable(boolean shouldThrow) throws IOException {
        mockCloseable = mock(Closeable.class);
        if (shouldThrow) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 4K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/io/CloseablesTest.java

        Closeables.closeQuietly((InputStream) null);
      }
    
      public void testCloseQuietlyNull_reader() {
        Closeables.closeQuietly((Reader) null);
      }
    
      // Set up a closeable to expect to be closed, and optionally to throw an
      // exception.
      private void setupCloseable(boolean shouldThrow) throws IOException {
        mockCloseable = mock(Closeable.class);
        if (shouldThrow) {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 4K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/util/concurrent/ExecutionError.java

       * non-nullable {@code cause}, as many users expect to find one.
       */
      public ExecutionError(@CheckForNull String message, @CheckForNull Error cause) {
        super(message, cause);
      }
    
      /**
       * Creates a new instance with {@code null} as its detail message and the given cause. Prefer to
       * provide a non-nullable {@code cause}, as many users expect to find one.
       */
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Mar 07 17:52:19 GMT 2024
    - 3.8K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/cache/LocalCacheMapComputeTest.java

                .expireAfterAccess(500000, TimeUnit.MILLISECONDS)
                .maximumSize(count)
                .build();
      }
    
      public void testComputeIfAbsent() {
        // simultaneous insertion for same key, expect 1 winner
        doParallelCacheOp(
            count,
            n -> {
              cache.asMap().computeIfAbsent(key, k -> "value" + n);
            });
        assertEquals(1, cache.size());
      }
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 6.3K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/io/LineBufferTest.java

      }
    
      private static final int[] CHUNK_SIZES = {1, 2, 3, Integer.MAX_VALUE};
    
      private static void bufferHelper(String input, String... expect) throws IOException {
    
        List<String> expectProcess = Arrays.asList(expect);
        List<String> expectRead =
            Lists.transform(
                expectProcess,
                new Function<String, String>() {
                  @Override
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 4.7K bytes
    - Viewed (0)
Back to top