Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for testApply (0.22 sec)

  1. guava-tests/test/com/google/common/cache/ForwardingLoadingCacheTest.java

        when(mock.getAll(ImmutableList.of("key"))).thenReturn(ImmutableMap.of("key", Boolean.TRUE));
        assertEquals(ImmutableMap.of("key", Boolean.TRUE), forward.getAll(ImmutableList.of("key")));
      }
    
      public void testApply() {
        when(mock.apply("key")).thenReturn(Boolean.TRUE);
        assertSame(Boolean.TRUE, forward.apply("key"));
      }
    
      public void testInvalidate() {
        forward.invalidate("key");
        verify(mock).invalidate("key");
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Apr 17 12:41:04 GMT 2023
    - 3.4K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/cache/ForwardingLoadingCacheTest.java

        when(mock.getAll(ImmutableList.of("key"))).thenReturn(ImmutableMap.of("key", Boolean.TRUE));
        assertEquals(ImmutableMap.of("key", Boolean.TRUE), forward.getAll(ImmutableList.of("key")));
      }
    
      public void testApply() {
        when(mock.apply("key")).thenReturn(Boolean.TRUE);
        assertSame(Boolean.TRUE, forward.apply("key"));
      }
    
      public void testInvalidate() {
        forward.invalidate("key");
        verify(mock).invalidate("key");
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 17 12:41:04 GMT 2023
    - 3.4K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/base/ConverterTest.java

            .testEquals();
      }
    
      public void testReverseReverse() {
        Converter<String, Long> converter = STR_TO_LONG;
        assertEquals(converter, converter.reverse().reverse());
      }
    
      public void testApply() {
        assertEquals(LONG_VAL, STR_TO_LONG.apply(STR_VAL));
      }
    
      private static class StringWrapper {
        private final String value;
    
        public StringWrapper(String value) {
          this.value = value;
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Fri Oct 06 17:02:33 GMT 2023
    - 7.8K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/base/ConverterTest.java

            .testEquals();
      }
    
      public void testReverseReverse() {
        Converter<String, Long> converter = STR_TO_LONG;
        assertEquals(converter, converter.reverse().reverse());
      }
    
      public void testApply() {
        assertEquals(LONG_VAL, STR_TO_LONG.apply(STR_VAL));
      }
    
      private static class StringWrapper {
        private final String value;
    
        public StringWrapper(String value) {
          this.value = value;
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri Oct 06 17:02:33 GMT 2023
    - 7.8K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/collect/RangeTest.java

        // separate above
        assertEquals(Range.closed(4, 12), range.span(Range.closed(10, 12)));
        assertEquals(Range.atLeast(4), range.span(Range.atLeast(10)));
      }
    
      public void testApply() {
        Predicate<Integer> predicate = Range.closed(2, 3);
        assertFalse(predicate.apply(1));
        assertTrue(predicate.apply(2));
        assertTrue(predicate.apply(3));
        assertFalse(predicate.apply(4));
      }
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Feb 21 10:16:44 GMT 2024
    - 24.1K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/collect/RangeTest.java

        // separate above
        assertEquals(Range.closed(4, 12), range.span(Range.closed(10, 12)));
        assertEquals(Range.atLeast(4), range.span(Range.atLeast(10)));
      }
    
      public void testApply() {
        Predicate<Integer> predicate = Range.closed(2, 3);
        assertFalse(predicate.apply(1));
        assertTrue(predicate.apply(2));
        assertTrue(predicate.apply(3));
        assertFalse(predicate.apply(4));
      }
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 21 10:16:44 GMT 2024
    - 24.1K bytes
    - Viewed (0)
Back to top