Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 27 for AbstractMultisetTester (0.26 sec)

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

    /**
     * Base class for multiset collection tests.
     *
     * @author Jared Levy
     */
    @GwtCompatible
    @Ignore // Affects only Android test runner, which respects JUnit 4 annotations on JUnit 3 tests.
    public class AbstractMultisetTester<E> extends AbstractCollectionTester<E> {
      protected final Multiset<E> getMultiset() {
        return (Multiset<E>) collection;
      }
    
      protected void initThreeCopies() {
    Registered: 2024-06-12 16:38
    - Last Modified: 2018-01-09 20:10
    - 1.3K bytes
    - Viewed (0)
  2. android/guava-testlib/src/com/google/common/collect/testing/google/AbstractMultisetTester.java

    /**
     * Base class for multiset collection tests.
     *
     * @author Jared Levy
     */
    @GwtCompatible
    @Ignore // Affects only Android test runner, which respects JUnit 4 annotations on JUnit 3 tests.
    public class AbstractMultisetTester<E> extends AbstractCollectionTester<E> {
      protected final Multiset<E> getMultiset() {
        return (Multiset<E>) collection;
      }
    
      protected void initThreeCopies() {
    Registered: 2024-06-12 16:38
    - Last Modified: 2018-01-09 20:10
    - 1.3K bytes
    - Viewed (0)
  3. android/guava-testlib/src/com/google/common/collect/testing/google/MultisetEqualsTester.java

     *
     * @author Louis Wasserman
     */
    @GwtCompatible
    @Ignore // Affects only Android test runner, which respects JUnit 4 annotations on JUnit 3 tests.
    public class MultisetEqualsTester<E> extends AbstractMultisetTester<E> {
      public void testEqualsSameContents() {
        new EqualsTester()
            .addEqualityGroup(
                getMultiset(), getSubjectGenerator().create(getSampleElements().toArray()))
            .testEquals();
      }
    Registered: 2024-06-12 16:38
    - Last Modified: 2018-01-09 20:10
    - 2.3K bytes
    - Viewed (0)
  4. android/guava-testlib/src/com/google/common/collect/testing/google/MultisetContainsTester.java

     *
     * @author Louis Wasserman
     */
    @GwtCompatible
    @Ignore // Affects only Android test runner, which respects JUnit 4 annotations on JUnit 3 tests.
    public class MultisetContainsTester<E> extends AbstractMultisetTester<E> {
      @CollectionSize.Require(absent = ZERO)
      public void testContainsAllMultisetIgnoresFrequency() {
        assertTrue(getMultiset().containsAll(getSubjectGenerator().create(e0(), e0(), e0())));
      }
    
    Registered: 2024-06-12 16:38
    - Last Modified: 2018-01-09 20:10
    - 1.6K bytes
    - Viewed (0)
  5. guava-testlib/src/com/google/common/collect/testing/google/MultisetContainsTester.java

     *
     * @author Louis Wasserman
     */
    @GwtCompatible
    @Ignore // Affects only Android test runner, which respects JUnit 4 annotations on JUnit 3 tests.
    public class MultisetContainsTester<E> extends AbstractMultisetTester<E> {
      @CollectionSize.Require(absent = ZERO)
      public void testContainsAllMultisetIgnoresFrequency() {
        assertTrue(getMultiset().containsAll(getSubjectGenerator().create(e0(), e0(), e0())));
      }
    
    Registered: 2024-06-12 16:38
    - Last Modified: 2018-01-09 20:10
    - 1.6K bytes
    - Viewed (0)
  6. android/guava-testlib/src/com/google/common/collect/testing/google/MultisetSerializationTester.java

     *
     * @author Louis Wasserman
     */
    @GwtCompatible // but no-op
    @Ignore // Affects only Android test runner, which respects JUnit 4 annotations on JUnit 3 tests.
    public class MultisetSerializationTester<E> extends AbstractMultisetTester<E> {
      @CollectionFeature.Require(SERIALIZABLE_INCLUDING_VIEWS)
      public void testEntrySetSerialization() {
        Set<Multiset.Entry<E>> expected = getMultiset().entrySet();
    Registered: 2024-06-12 16:38
    - Last Modified: 2022-11-15 21:38
    - 1.8K bytes
    - Viewed (0)
  7. guava-testlib/src/com/google/common/collect/testing/google/MultisetSerializationTester.java

     *
     * @author Louis Wasserman
     */
    @GwtCompatible // but no-op
    @Ignore // Affects only Android test runner, which respects JUnit 4 annotations on JUnit 3 tests.
    public class MultisetSerializationTester<E> extends AbstractMultisetTester<E> {
      @CollectionFeature.Require(SERIALIZABLE_INCLUDING_VIEWS)
      public void testEntrySetSerialization() {
        Set<Multiset.Entry<E>> expected = getMultiset().entrySet();
    Registered: 2024-06-12 16:38
    - Last Modified: 2022-11-15 21:38
    - 1.8K bytes
    - Viewed (0)
  8. guava-testlib/src/com/google/common/collect/testing/google/MultisetForEachEntryTester.java

     *
     * @author Louis Wasserman
     */
    @GwtCompatible(emulated = true)
    @Ignore // Affects only Android test runner, which respects JUnit 4 annotations on JUnit 3 tests.
    public class MultisetForEachEntryTester<E> extends AbstractMultisetTester<E> {
      public void testForEachEntry() {
        List<Entry<E>> expected = new ArrayList<>(getMultiset().entrySet());
        List<Entry<E>> actual = new ArrayList<>();
        getMultiset()
    Registered: 2024-06-12 16:38
    - Last Modified: 2024-02-21 16:49
    - 3K bytes
    - Viewed (0)
  9. guava-testlib/src/com/google/common/collect/testing/google/MultisetEqualsTester.java

     *
     * @author Louis Wasserman
     */
    @GwtCompatible
    @Ignore // Affects only Android test runner, which respects JUnit 4 annotations on JUnit 3 tests.
    public class MultisetEqualsTester<E> extends AbstractMultisetTester<E> {
      public void testEqualsSameContents() {
        new EqualsTester()
            .addEqualityGroup(
                getMultiset(), getSubjectGenerator().create(getSampleElements().toArray()))
            .testEquals();
      }
    Registered: 2024-06-12 16:38
    - Last Modified: 2018-01-09 20:10
    - 2.3K bytes
    - Viewed (0)
  10. android/guava-testlib/src/com/google/common/collect/testing/google/MultisetCountTester.java

     *
     * @author Jared Levy
     */
    @GwtCompatible(emulated = true)
    @Ignore // Affects only Android test runner, which respects JUnit 4 annotations on JUnit 3 tests.
    public class MultisetCountTester<E> extends AbstractMultisetTester<E> {
    
      public void testCount_0() {
        assertEquals("multiset.count(missing) didn't return 0", 0, getMultiset().count(e3()));
      }
    
      @CollectionSize.Require(absent = ZERO)
      public void testCount_1() {
    Registered: 2024-06-12 16:38
    - Last Modified: 2024-02-21 16:49
    - 3.4K bytes
    - Viewed (0)
Back to top