Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 317 for foo (0.23 sec)

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

      private @interface ExampleAnnotation {}
    
      private enum AnEnum {
        @ExampleAnnotation
        FOO,
        BAR
      }
    
      @J2ktIncompatible
      @GwtIncompatible // reflection
      public void testGetField() {
        Field foo = Enums.getField(AnEnum.FOO);
        assertEquals("FOO", foo.getName());
        assertTrue(foo.isAnnotationPresent(ExampleAnnotation.class));
    
        Field bar = Enums.getField(AnEnum.BAR);
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Oct 03 20:10:02 GMT 2023
    - 8.8K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/collect/IteratorsTest.java

      }
    
      public void testFilterSimple() {
        Iterator<String> unfiltered = Lists.newArrayList("foo", "bar").iterator();
        Iterator<String> filtered = Iterators.filter(unfiltered, Predicates.equalTo("foo"));
        List<String> expected = Collections.singletonList("foo");
        List<String> actual = Lists.newArrayList(filtered);
        assertEquals(expected, actual);
      }
    
    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)
  3. android/guava-tests/test/com/google/common/base/PredicatesTest.java

        Predicate<String> equalsFoo = Predicates.equalTo("Foo");
        Predicate<String> equalsBar = Predicates.equalTo("Bar");
        Predicate<String> trimEqualsFoo = Predicates.compose(equalsFoo, trim);
        Function<String, String> identity = Functions.identity();
    
        assertTrue(trimEqualsFoo.apply("Foo"));
        assertTrue(trimEqualsFoo.apply("   Foo   "));
        assertFalse(trimEqualsFoo.apply("Foo-b-que"));
    
        new EqualsTester()
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 17:15:24 GMT 2024
    - 32.4K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/reflect/TypeTokenSubtypeTest.java

            List<? super String> list) {
          return notSubtype(list);
        }
    
        // Can't test getSupertype() or getSubtype() because JDK reflection doesn't consider
        // Foo<?> and Foo<? extends Bar> equal for class Foo<T extends Bar>
        @TestSubtype(suppressGetSupertype = true, suppressGetSubtype = true)
        public UseIterable<?> explicitTypeBoundIsSubtypeOfImplicitTypeBound(
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 20.3K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/escape/ArrayBasedCharEscaperTest.java

                return ("{" + c + "}").toCharArray();
              }
            };
        EscaperAsserts.assertBasic(wrappingEscaper);
        // '[' and '@' lie either side of [A-Z].
        assertEquals("{[}FOO{@}BAR{]}", wrappingEscaper.escape("[FOO@BAR]"));
      }
    
      public void testSafeRange_maxLessThanMin() throws IOException {
        // Basic escaping of unsafe chars (wrap them in {,}'s)
        CharEscaper wrappingEscaper =
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Feb 07 23:02:38 GMT 2024
    - 3.5K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/base/ConverterTest.java

      public void testNullIsPassedThrough() {
        Converter<String, String> nullsArePassed = sillyConverter(false);
        assertEquals("forward", nullsArePassed.convert("foo"));
        assertEquals("forward", nullsArePassed.convert(null));
        assertEquals("backward", nullsArePassed.reverse().convert("foo"));
        assertEquals("backward", nullsArePassed.reverse().convert(null));
      }
    
      public void testNullIsNotPassedThrough() {
    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)
  7. guava-tests/test/com/google/common/collect/UnmodifiableRowSortedTableColumnMapTest.java

      }
    
      @Override
      protected Map<String, Map<Integer, Character>> makePopulatedMap() {
        RowSortedTable<Integer, String, Character> table = TreeBasedTable.create();
        table.put(1, "foo", 'a');
        table.put(1, "bar", 'b');
        table.put(3, "foo", 'c');
        return Tables.unmodifiableRowSortedTable(table).columnMap();
      }
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Feb 19 20:34:55 GMT 2024
    - 1.5K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/collect/UnmodifiableTableColumnMapTest.java

      }
    
      @Override
      protected Map<String, Map<Integer, Character>> makePopulatedMap() {
        Table<Integer, String, Character> table = HashBasedTable.create();
        table.put(1, "foo", 'a');
        table.put(1, "bar", 'b');
        table.put(3, "foo", 'c');
        return Tables.unmodifiableTable(table).columnMap();
      }
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Feb 19 20:34:55 GMT 2024
    - 1.4K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/base/JoinerTest.java

      @GwtIncompatible // StringBuilder.append in GWT invokes Object.toString(), unlike the JRE version.
      public void testDontConvertCharSequenceToString() {
        assertEquals("foo,foo", Joiner.on(",").join(new DontStringMeBro(), new DontStringMeBro()));
        assertEquals(
            "foo,bar,foo",
            Joiner.on(",").useForNull("bar").join(new DontStringMeBro(), null, new DontStringMeBro()));
      }
    
      @J2ktIncompatible
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 12.6K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/collect/TableCollectionTest.java

          populateTable(table);
          return table.rowMap();
        }
    
        void populateTable(Table<String, Integer, Character> table) {
          table.put("foo", 1, 'a');
          table.put("bar", 1, 'b');
          table.put("foo", 3, 'c');
        }
    
        @Override
        protected Map<String, Map<Integer, Character>> makeEmptyMap() {
          return makeTable().rowMap();
        }
      }
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Feb 19 20:34:55 GMT 2024
    - 35.3K bytes
    - Viewed (0)
Back to top