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

@GwtCompatible
public class CollectionRemoveAllTester<E>
extends AbstractCollectionTester<E>

A generic JUnit test which tests removeAll operations on a collection. Can't be invoked directly; please see CollectionTestSuiteBuilder.

This class is GWT compatible.

Author:
George van den Driessche, Chris Povirk

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
CollectionRemoveAllTester()
           
 
Method Summary
 void testRemoveAll_allPresent()
           
 void testRemoveAll_containsNullNo()
           
 void testRemoveAll_containsNullNoButAllowed()
           
 void testRemoveAll_containsNullYes()
           
 void testRemoveAll_containsWrongType()
           
 void testRemoveAll_emptyCollection()
           
 void testRemoveAll_nonePresent()
           
 void testRemoveAll_nullCollectionReferenceEmptySubject()
           
 void testRemoveAll_nullCollectionReferenceNonEmptySubject()
           
 void testRemoveAll_somePresent()
           
 void testRemoveAll_somePresentLargeCollectionToRemove()
          Trigger the other.size() >= this.size() case in AbstractSet.removeAll().
 void testRemoveAll_unsupportedEmptyCollection()
           
 void testRemoveAll_unsupportedNonePresent()
           
 void testRemoveAll_unsupportedPresent()
           
 void testRemoveAllSomePresentConcurrentWithIteration()
           
 
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

CollectionRemoveAllTester

public CollectionRemoveAllTester()
Method Detail

testRemoveAll_emptyCollection

public void testRemoveAll_emptyCollection()

testRemoveAll_nonePresent

public void testRemoveAll_nonePresent()

testRemoveAll_allPresent

public void testRemoveAll_allPresent()

testRemoveAll_somePresent

public void testRemoveAll_somePresent()

testRemoveAllSomePresentConcurrentWithIteration

public void testRemoveAllSomePresentConcurrentWithIteration()

testRemoveAll_somePresentLargeCollectionToRemove

public void testRemoveAll_somePresentLargeCollectionToRemove()
Trigger the other.size() >= this.size() case in AbstractSet.removeAll().


testRemoveAll_unsupportedEmptyCollection

public void testRemoveAll_unsupportedEmptyCollection()

testRemoveAll_unsupportedNonePresent

public void testRemoveAll_unsupportedNonePresent()

testRemoveAll_unsupportedPresent

public void testRemoveAll_unsupportedPresent()

testRemoveAll_nullCollectionReferenceEmptySubject

public void testRemoveAll_nullCollectionReferenceEmptySubject()

testRemoveAll_nullCollectionReferenceNonEmptySubject

public void testRemoveAll_nullCollectionReferenceNonEmptySubject()

testRemoveAll_containsNullNo

public void testRemoveAll_containsNullNo()

testRemoveAll_containsNullNoButAllowed

public void testRemoveAll_containsNullNoButAllowed()

testRemoveAll_containsNullYes

public void testRemoveAll_containsNullYes()

testRemoveAll_containsWrongType

public void testRemoveAll_containsWrongType()


Copyright © 2010-2012. All Rights Reserved.