com.google.common.collect.testing.google
Class MultisetReadsTester<E>

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by com.google.common.collect.testing.AbstractTester<OneSizeTestContainerGenerator<C,E>>
              extended by com.google.common.collect.testing.AbstractContainerTester<Collection<E>,E>
                  extended by com.google.common.collect.testing.AbstractCollectionTester<E>
                      extended by com.google.common.collect.testing.google.AbstractMultisetTester<E>
                          extended by com.google.common.collect.testing.google.MultisetReadsTester<E>
All Implemented Interfaces:
junit.framework.Test

@GwtCompatible
public class MultisetReadsTester<E>
extends AbstractMultisetTester<E>

A generic JUnit test which tests multiset-specific read operations. Can't be invoked directly; please see SetTestSuiteBuilder.

Author:
Jared Levy

Nested Class Summary
 
Nested classes/interfaces inherited from class com.google.common.collect.testing.AbstractContainerTester
AbstractContainerTester.ArrayWithDuplicate<E>
 
Field Summary
 
Fields inherited from class com.google.common.collect.testing.AbstractCollectionTester
collection
 
Fields inherited from class com.google.common.collect.testing.AbstractContainerTester
container, samples
 
Constructor Summary
MultisetReadsTester()
           
 
Method Summary
static List<Method> getReadsDuplicateInitializingMethods()
          Returns Method instances for the read tests that assume multisets support duplicates so that the test of Multisets.forSet() can suppress them.
 void testCount_0()
           
 void testCount_1()
           
 void testCount_3()
           
 void testCount_null()
           
 void testCount_wrongType()
           
 void testElementSet_contains()
           
 void testEntrySet_contains_count0()
           
 void testEntrySet_contains_nonentry()
           
 void testEntrySet_contains()
           
 void testEntrySet_hashCode_size0()
           
 void testEntrySet_hashCode_size1()
           
 void testEntrySet_twice()
           
 void testEquals_differentElements()
           
 void testEquals_differentSize()
           
 void testEquals_yes()
           
 void testHashCode_size0()
           
 void testHashCode_size1()
           
 
Methods inherited from class com.google.common.collect.testing.google.AbstractMultisetTester
getMultiset, initThreeCopies
 
Methods inherited from class com.google.common.collect.testing.AbstractCollectionTester
actualContents, createArrayWithNullElement, expectNullMissingWhenNullUnsupported, initCollectionWithNullElement, resetCollection, resetContainer
 
Methods inherited from class com.google.common.collect.testing.AbstractContainerTester
createArrayWithDuplicateElement, createDisjointCollection, createSamplesArray, emptyCollection, expectAdded, expectAdded, expectAdded, expectContents, expectContents, expectMissing, expectUnchanged, getNullLocation, getNumElements, getOrderedElements, getSampleElements, getSampleElements, resetContainer, setUp
 
Methods inherited from class com.google.common.collect.testing.AbstractTester
getName, getSubjectGenerator, getTestMethodName, init, init, tearDown
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, run, run, runBare, runTest, setName, toString
 
Methods inherited from class junit.framework.Assert
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail, failNotEquals, failNotSame, failSame, format
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MultisetReadsTester

public MultisetReadsTester()
Method Detail

testCount_0

public void testCount_0()

testCount_1

public void testCount_1()

testCount_3

public void testCount_3()

testCount_null

public void testCount_null()

testCount_wrongType

public void testCount_wrongType()

testElementSet_contains

public void testElementSet_contains()

testEntrySet_contains

public void testEntrySet_contains()

testEntrySet_contains_count0

public void testEntrySet_contains_count0()

testEntrySet_contains_nonentry

public void testEntrySet_contains_nonentry()

testEntrySet_twice

public void testEntrySet_twice()

testEntrySet_hashCode_size0

public void testEntrySet_hashCode_size0()

testEntrySet_hashCode_size1

public void testEntrySet_hashCode_size1()

testEquals_yes

public void testEquals_yes()

testEquals_differentSize

public void testEquals_differentSize()

testEquals_differentElements

public void testEquals_differentElements()

testHashCode_size0

public void testHashCode_size0()

testHashCode_size1

public void testHashCode_size1()

getReadsDuplicateInitializingMethods

public static List<Method> getReadsDuplicateInitializingMethods()
Returns Method instances for the read tests that assume multisets support duplicates so that the test of Multisets.forSet() can suppress them.



Copyright © 2010-2011. All Rights Reserved.