Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 92 for getSubjectGenerator (0.12 sec)

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

      }
    
      @Override
      public void setUp() throws Exception {
        super.setUp();
        sortedMultiset = cast(getMultiset());
        entries =
            copyToList(
                getSubjectGenerator()
                    .getSampleElements(getSubjectGenerator().getCollectionSize().getNumElements()));
        sort(entries, sortedMultiset.comparator());
    
        // some tests assume SEVERAL == 3
        if (entries.size() >= 1) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 26.1K bytes
    - Viewed (0)
  2. guava-testlib/src/com/google/common/collect/testing/google/MultimapClearTester.java

      }
    
      private void assertCleared() {
        assertEquals(0, multimap().size());
        assertEmpty(multimap());
        assertEquals(multimap(), getSubjectGenerator().create());
        assertEmpty(multimap().entries());
        assertEmpty(multimap().asMap());
        assertEmpty(multimap().keySet());
        assertEmpty(multimap().keys());
        assertEmpty(multimap().values());
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 19:10:20 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  3. android/guava-testlib/src/com/google/common/collect/testing/testers/MapHashCodeTester.java

        entries.add(entryWithNull);
    
        int expectedHashCode = 0;
        for (Entry<K, V> entry : entries) {
          expectedHashCode += hash(entry);
        }
    
        resetContainer(getSubjectGenerator().create(entries.toArray()));
        assertEquals(
            "A Map's hashCode() should be the sum of those of its entries (where "
                + "a null element in an entry counts as having a hash of zero).",
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Jul 24 20:12:35 UTC 2024
    - 3K bytes
    - Viewed (0)
  4. android/guava-testlib/src/com/google/common/collect/testing/NavigableSetTestSuiteBuilder.java

          FeatureSpecificTestSuiteBuilder<?, ? extends OneSizeTestContainerGenerator<Collection<E>, E>>
              parentBuilder) {
        TestSetGenerator<E> delegate =
            (TestSetGenerator<E>) parentBuilder.getSubjectGenerator().getInnerGenerator();
    
        List<Feature<?>> features = new ArrayList<>();
        features.add(DESCENDING_VIEW);
        features.addAll(parentBuilder.getFeatures());
    
        return NavigableSetTestSuiteBuilder.using(
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  5. android/guava-testlib/src/com/google/common/collect/testing/google/MultimapEntriesTester.java

      @CollectionSize.Require(absent = ZERO)
      @MapFeature.Require(SUPPORTS_REMOVE)
      public void testRetainAllPropagatesToMultimap() {
        multimap().entries().retainAll(singleton(mapEntry(k0(), v0())));
        assertEquals(getSubjectGenerator().create(mapEntry(k0(), v0())), multimap());
        assertEquals(1, multimap().size());
        assertTrue(multimap().containsEntry(k0(), v0()));
      }
    
      @CollectionSize.Require(ONE)
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 5K bytes
    - Viewed (0)
  6. guava-testlib/src/com/google/common/collect/testing/SortedMapTestSuiteBuilder.java

              parentBuilder,
          Bound from,
          Bound to) {
        TestSortedMapGenerator<K, V> delegate =
            (TestSortedMapGenerator<K, V>) parentBuilder.getSubjectGenerator().getInnerGenerator();
    
        List<Feature<?>> features = new ArrayList<>();
        features.add(NoRecurse.SUBMAP);
        features.addAll(parentBuilder.getFeatures());
    
        return newBuilderUsing(delegate, to, from)
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 5K bytes
    - Viewed (0)
  7. guava-testlib/src/com/google/common/collect/testing/testers/ListAddTester.java

      @CollectionFeature.Require(value = {SUPPORTS_ADD, ALLOWS_NULL_VALUES})
      @CollectionSize.Require(absent = ZERO)
      public void testAdd_supportedNullPresent() {
        E[] array = createArrayWithNullElement();
        collection = getSubjectGenerator().create(array);
        assertTrue("add(nullPresent) should return true", getList().add(null));
    
        List<E> expected = copyToList(array);
        expected.add(null);
        expectContents(expected);
      }
    
      /**
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 3.3K bytes
    - Viewed (0)
  8. guava-testlib/src/com/google/common/collect/testing/testers/CollectionRemoveTester.java

        expectUnchanged();
      }
    
      @CollectionFeature.Require({SUPPORTS_REMOVE, ALLOWS_NULL_VALUES})
      @CollectionSize.Require(absent = ZERO)
      public void testRemove_nullPresent() {
        collection = getSubjectGenerator().create(createArrayWithNullElement());
    
        int initialSize = collection.size();
        assertTrue("remove(null) should return true", collection.remove(null));
        assertEquals(
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 20:00:30 UTC 2024
    - 5.5K bytes
    - Viewed (0)
  9. android/guava-testlib/src/com/google/common/collect/testing/PerCollectionSizeTestSuiteBuilder.java

              Platform.format(
                  "%s [collection size: %s]", name, collectionSize.toString().toLowerCase());
          OneSizeGenerator<T, E> oneSizeGenerator =
              new OneSizeGenerator<>(getSubjectGenerator(), (CollectionSize) collectionSize);
          Set<Feature<?>> oneSizeFeatures = copyToSet(features);
          oneSizeFeatures.add(collectionSize);
          Set<Method> oneSizeSuppressedTests = getSuppressedTests();
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  10. guava-testlib/src/com/google/common/collect/testing/NavigableSetTestSuiteBuilder.java

          FeatureSpecificTestSuiteBuilder<?, ? extends OneSizeTestContainerGenerator<Collection<E>, E>>
              parentBuilder) {
        TestSetGenerator<E> delegate =
            (TestSetGenerator<E>) parentBuilder.getSubjectGenerator().getInnerGenerator();
    
        List<Feature<?>> features = new ArrayList<>();
        features.add(DESCENDING_VIEW);
        features.addAll(parentBuilder.getFeatures());
    
        return NavigableSetTestSuiteBuilder.using(
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 6.2K bytes
    - Viewed (0)
Back to top