Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for TestEnumMapGenerator (0.18 sec)

  1. android/guava-testlib/src/com/google/common/collect/testing/TestEnumMapGenerator.java

    /**
     * Implementation helper for {@link TestMapGenerator} for use with enum maps.
     *
     * @author Kevin Bourrillion
     */
    @GwtCompatible
    @ElementTypesAreNonnullByDefault
    public abstract class TestEnumMapGenerator implements TestMapGenerator<AnEnum, String> {
    
      @Override
      public SampleElements<Entry<AnEnum, String>> samples() {
        return new SampleElements<>(
            mapEntry(AnEnum.A, "January"),
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  2. android/guava-testlib/src/com/google/common/collect/testing/google/MapGenerators.java

    import com.google.common.collect.Maps;
    import com.google.common.collect.Ordering;
    import com.google.common.collect.testing.AnEnum;
    import com.google.common.collect.testing.SampleElements;
    import com.google.common.collect.testing.TestEnumMapGenerator;
    import com.google.common.collect.testing.TestListGenerator;
    import com.google.common.collect.testing.TestMapGenerator;
    import com.google.common.collect.testing.TestStringListGenerator;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 8.5K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/collect/ImmutableEnumMapTest.java

    import com.google.common.base.Function;
    import com.google.common.collect.testing.AnEnum;
    import com.google.common.collect.testing.MapTestSuiteBuilder;
    import com.google.common.collect.testing.TestEnumMapGenerator;
    import com.google.common.collect.testing.features.CollectionSize;
    import java.util.Map;
    import java.util.Map.Entry;
    import junit.framework.Test;
    import junit.framework.TestCase;
    import junit.framework.TestSuite;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  4. android/guava-testlib/src/com/google/common/collect/testing/TestsForMapsInJavaUtil.java

            .suppressing(suppressForUnmodifiableSortedMap())
            .createTestSuite();
      }
    
      public Test testsForEnumMap() {
        return MapTestSuiteBuilder.using(
                new TestEnumMapGenerator() {
                  @Override
                  protected Map<AnEnum, String> create(Entry<AnEnum, String>[] entries) {
                    return populate(new EnumMap<AnEnum, String>(AnEnum.class), entries);
                  }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 17K bytes
    - Viewed (0)
  5. guava-testlib/src/com/google/common/collect/testing/TestsForMapsInJavaUtil.java

            .suppressing(suppressForUnmodifiableSortedMap())
            .createTestSuite();
      }
    
      public Test testsForEnumMap() {
        return MapTestSuiteBuilder.using(
                new TestEnumMapGenerator() {
                  @Override
                  protected Map<AnEnum, String> create(Entry<AnEnum, String>[] entries) {
                    return populate(new EnumMap<AnEnum, String>(AnEnum.class), entries);
                  }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 21.6K bytes
    - Viewed (0)
Back to top