com.google.common.collect.testing.google
Class MultisetWritesTester<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.MultisetWritesTester<E>
All Implemented Interfaces:
junit.framework.Test

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

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

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
MultisetWritesTester()
           
 
Method Summary
 void testAddOccurrences_unsupported()
           
 void testAddOccurrences()
           
 void testEntrySet_clear()
           
 void testEntrySet_iterator_remove_unsupported()
           
 void testEntrySet_iterator()
           
 void testEntrySet_remove_missing()
           
 void testEntrySet_remove_present()
           
 void testEntrySet_removeAll_missing()
           
 void testEntrySet_removeAll_null()
           
 void testEntrySet_removeAll_present()
           
 void testEntrySet_retainAll_missing()
           
 void testEntrySet_retainAll_null()
           
 void testEntrySet_retainAll_present()
           
 void testRemove_occurrences_0()
           
 void testRemove_occurrences_absent()
           
 void testRemove_occurrences_negative()
           
 void testRemove_occurrences_present()
           
 void testRemove_occurrences_unsupported_absent()
           
 void testRemove_occurrences_wrongType()
           
 
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

MultisetWritesTester

public MultisetWritesTester()
Method Detail

testAddOccurrences

public void testAddOccurrences()

testAddOccurrences_unsupported

public void testAddOccurrences_unsupported()

testRemove_occurrences_present

public void testRemove_occurrences_present()

testRemove_occurrences_absent

public void testRemove_occurrences_absent()

testRemove_occurrences_unsupported_absent

public void testRemove_occurrences_unsupported_absent()

testRemove_occurrences_0

public void testRemove_occurrences_0()

testRemove_occurrences_negative

public void testRemove_occurrences_negative()

testRemove_occurrences_wrongType

public void testRemove_occurrences_wrongType()

testEntrySet_clear

public void testEntrySet_clear()

testEntrySet_iterator

public void testEntrySet_iterator()

testEntrySet_iterator_remove_unsupported

public void testEntrySet_iterator_remove_unsupported()

testEntrySet_remove_present

public void testEntrySet_remove_present()

testEntrySet_remove_missing

public void testEntrySet_remove_missing()

testEntrySet_removeAll_present

public void testEntrySet_removeAll_present()

testEntrySet_removeAll_missing

public void testEntrySet_removeAll_missing()

testEntrySet_removeAll_null

public void testEntrySet_removeAll_null()

testEntrySet_retainAll_present

public void testEntrySet_retainAll_present()

testEntrySet_retainAll_missing

public void testEntrySet_retainAll_missing()

testEntrySet_retainAll_null

public void testEntrySet_retainAll_null()


Copyright © 2010-2011. All Rights Reserved.