Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 92 for getSubjectGenerator (0.1 sec)

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

              parentBuilder) {
        return SortedSetTestSuiteBuilder.using(
                new SetMultimapTestSuiteBuilder.MultimapGetGenerator<K, V>(
                    parentBuilder.getSubjectGenerator()))
            .withFeatures(computeMultimapGetFeatures(parentBuilder.getFeatures()))
            .named(parentBuilder.getName() + ".get[key]")
            .suppressing(parentBuilder.getSuppressedTests())
            .createTestSuite();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  2. guava-testlib/src/com/google/common/collect/testing/testers/ListEqualsTester.java

      }
    
      @CollectionSize.Require(absent = CollectionSize.ZERO)
      public void testEquals_otherListWithDifferentElements() {
        ArrayList<E> other = new ArrayList<>(getSampleElements());
        other.set(other.size() / 2, getSubjectGenerator().samples().e3());
        assertFalse(
            "A List should not equal another List containing different elements.",
            getList().equals(other));
      }
    
      @CollectionSize.Require(absent = CollectionSize.ZERO)
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Jul 24 20:12:35 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  3. android/guava-testlib/src/com/google/common/collect/testing/testers/MapEqualsTester.java

      @MapFeature.Require(ALLOWS_NULL_KEYS)
      public void testEquals_containingNullKey() {
        Collection<Entry<K, V>> entries = getSampleEntries(getNumEntries() - 1);
        entries.add(entry(null, v3()));
    
        resetContainer(getSubjectGenerator().create(entries.toArray()));
        assertTrue(
            "A Map should equal any other Map containing the same entries,"
                + " even if some keys are null.",
            getMap().equals(newHashMap(entries)));
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 4.9K bytes
    - Viewed (0)
  4. guava-testlib/src/com/google/common/collect/testing/testers/NavigableSetNavigationTester.java

      @Override
      public void setUp() throws Exception {
        super.setUp();
        navigableSet = (NavigableSet<E>) getSet();
        values =
            copyToList(
                getSubjectGenerator()
                    .getSampleElements(getSubjectGenerator().getCollectionSize().getNumElements()));
        sort(values, navigableSet.comparator());
    
        // some tests assume SEVERAL == 3
        if (values.size() >= 1) {
          a = values.get(0);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  5. android/guava-testlib/src/com/google/common/collect/testing/testers/ListLastIndexOfTester.java

      @CollectionSize.Require(absent = {ZERO, ONE})
      public void testLastIndexOf_duplicate() {
        E[] array = createSamplesArray();
        array[getNumElements() / 2] = e0();
        collection = getSubjectGenerator().create(array);
        assertEquals(
            "lastIndexOf(duplicate) should return index of last occurrence",
            getNumElements() / 2,
            getList().lastIndexOf(e0()));
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Jul 24 20:12:35 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  6. android/guava-testlib/src/com/google/common/collect/testing/google/ListMultimapTestSuiteBuilder.java

                  ?, ? extends OneSizeTestContainerGenerator<ListMultimap<K, V>, Entry<K, V>>>
              parentBuilder) {
        return ListTestSuiteBuilder.using(
                new MultimapGetGenerator<K, V>(parentBuilder.getSubjectGenerator()))
            .withFeatures(computeMultimapGetFeatures(parentBuilder.getFeatures()))
            .named(parentBuilder.getName() + ".get[key]")
            .suppressing(parentBuilder.getSuppressedTests())
            .createTestSuite();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  7. android/guava-testlib/src/com/google/common/collect/testing/AbstractCollectionTester.java

        array[getNullLocation()] = null;
        return array;
      }
    
      protected void initCollectionWithNullElement() {
        E[] array = createArrayWithNullElement();
        resetContainer(getSubjectGenerator().create(array));
      }
    
      /**
       * Equivalent to {@link #expectMissing(Object[]) expectMissing}{@code (null)} except that the call
       * to {@code contains(null)} is permitted to throw a {@code NullPointerException}.
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Jul 24 20:12:35 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  8. android/guava-testlib/src/com/google/common/collect/testing/google/SortedMultisetTestSuiteBuilder.java

              parentBuilder) {
        // TODO(lowasser): make a SortedElementSetGenerator
        return SetTestSuiteBuilder.using(
                new ElementSetGenerator<E>(parentBuilder.getSubjectGenerator()))
            .named(getName() + ".elementSet")
            .withFeatures(computeElementSetFeatures(parentBuilder.getFeatures()))
            .suppressing(parentBuilder.getSuppressedTests())
            .createTestSuite();
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 12K bytes
    - Viewed (0)
  9. android/guava-testlib/src/com/google/common/collect/testing/google/MultisetAddTester.java

        expectUnchanged();
      }
    
      @CollectionFeature.Require(SUPPORTS_ADD)
      public void testAddAll_emptyMultiset() {
        assertFalse(getMultiset().addAll(getSubjectGenerator().create()));
        expectUnchanged();
      }
    
      @CollectionFeature.Require(SUPPORTS_ADD)
      public void testAddAll_nonEmptyList() {
        assertTrue(getMultiset().addAll(asList(e3(), e4(), e3())));
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 4K bytes
    - Viewed (0)
  10. android/guava-testlib/src/com/google/common/collect/testing/testers/ListEqualsTester.java

      }
    
      @CollectionSize.Require(absent = CollectionSize.ZERO)
      public void testEquals_otherListWithDifferentElements() {
        ArrayList<E> other = new ArrayList<>(getSampleElements());
        other.set(other.size() / 2, getSubjectGenerator().samples().e3());
        assertFalse(
            "A List should not equal another List containing different elements.",
            getList().equals(other));
      }
    
      @CollectionSize.Require(absent = CollectionSize.ZERO)
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Jul 24 20:12:35 UTC 2024
    - 3.5K bytes
    - Viewed (0)
Back to top