Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for test_transform (0.22 sec)

  1. guava-tests/test/com/google/common/base/OptionalTest.java

        } catch (UnsupportedOperationException expected) {
        }
      }
    
      public void testTransform_absent() {
        assertEquals(Optional.absent(), Optional.absent().transform(Functions.identity()));
        assertEquals(Optional.absent(), Optional.absent().transform(Functions.toStringFunction()));
      }
    
      public void testTransform_presentIdentity() {
        assertEquals(Optional.of("a"), Optional.of("a").transform(Functions.identity()));
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Feb 21 18:32:41 GMT 2024
    - 11.2K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/util/concurrent/FluentFutureTest.java

                      }
                    },
                    directExecutor());
        assertThat(f.get()).isEqualTo(CustomRuntimeException.class);
      }
    
      public void testTransform() throws Exception {
        FluentFuture<Integer> f =
            FluentFuture.from(immediateFuture(1))
                .transform(
                    new Function<Integer, Integer>() {
                      @Override
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 13 14:28:25 GMT 2024
    - 5.7K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/collect/IteratorsTest.java

        Iterator<String> iterator = list.iterator();
        assertThat(Iterators.tryFind(iterator, Predicates.alwaysFalse())).isAbsent();
        assertFalse(iterator.hasNext());
      }
    
      public void testTransform() {
        Iterator<String> input = asList("1", "2", "3").iterator();
        Iterator<Integer> result =
            Iterators.transform(
                input,
                new Function<String, Integer>() {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 55.7K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/base/OptionalTest.java

        } catch (UnsupportedOperationException expected) {
        }
      }
    
      public void testTransform_absent() {
        assertEquals(Optional.absent(), Optional.absent().transform(Functions.identity()));
        assertEquals(Optional.absent(), Optional.absent().transform(Functions.toStringFunction()));
      }
    
      public void testTransform_presentIdentity() {
        assertEquals(Optional.of("a"), Optional.of("a").transform(Functions.identity()));
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Feb 21 18:32:41 GMT 2024
    - 10.5K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/util/concurrent/FuturesTest.java

      public void testTransform_genericsNull() throws Exception {
        ListenableFuture<?> nullFuture = immediateFuture(null);
        ListenableFuture<?> transformedFuture = transform(nullFuture, constant(null), directExecutor());
        assertNull(getDone(transformedFuture));
      }
    
      @J2ktIncompatible // TODO(b/324550390): Enable
      public void testTransform_genericsHierarchy() throws Exception {
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 144.5K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/util/concurrent/FluentFutureTest.java

                      }
                    },
                    directExecutor());
        assertThat(f.get()).isEqualTo(CustomRuntimeException.class);
      }
    
      public void testTransform() throws Exception {
        FluentFuture<Integer> f =
            FluentFuture.from(immediateFuture(1))
                .transform(
                    new Function<Integer, Integer>() {
                      @Override
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Tue Feb 13 14:28:25 GMT 2024
    - 5.7K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/util/concurrent/FuturesTest.java

      public void testTransform_genericsNull() throws Exception {
        ListenableFuture<?> nullFuture = immediateFuture(null);
        ListenableFuture<?> transformedFuture = transform(nullFuture, constant(null), directExecutor());
        assertNull(getDone(transformedFuture));
      }
    
      @J2ktIncompatible // TODO(b/324550390): Enable
      public void testTransform_genericsHierarchy() throws Exception {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 144.5K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/util/concurrent/AbstractClosingFutureTest.java

        // Step 4's closeable is now closed.
        assertClosed(closeable4);
        // Step 3 still never ran, so its closeable should still be open.
        assertStillOpen(closeable3);
      }
    
      public void testTransform() throws Exception {
        ClosingFuture<String> closingFuture =
            ClosingFuture.from(immediateFuture("value"))
                .transform(
                    new ClosingFunction<String, TestCloseable>() {
    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)
  9. guava-tests/test/com/google/common/collect/IterablesTest.java

        blist.forEach(b -> assertThat(b).isEqualTo(expectedIterator.next()));
        assertThat(expectedIterator.hasNext()).isFalse();
      }
    
      public void testTransform_iterator() {
        List<String> input = asList("1", "2", "3");
        Iterable<Integer> result =
            Iterables.transform(
                input,
                new Function<String, Integer>() {
                  @Override
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 47.5K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/util/concurrent/AbstractClosingFutureTest.java

        // Step 4's closeable is now closed.
        assertClosed(closeable4);
        // Step 3 still never ran, so its closeable should still be open.
        assertStillOpen(closeable3);
      }
    
      public void testTransform() throws Exception {
        ClosingFuture<String> closingFuture =
            ClosingFuture.from(immediateFuture("value"))
                .transform(
                    new ClosingFunction<String, TestCloseable>() {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 17:15:24 GMT 2024
    - 74.7K bytes
    - Viewed (0)
Back to top