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

public class CollectionRetainAllTester<E>
extends AbstractCollectionTester<E>

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

This class is GWT compatible.

Author:
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
CollectionRetainAllTester()
           
 
Method Summary
 void setUp()
           
 void testRetainAll_containsDuplicatesSizeOne()
           
 void testRetainAll_containsDuplicatesSizeSeveral()
           
 void testRetainAll_containsNonNullWithNull()
           
 void testRetainAll_disjointPreviouslyEmpty()
           
 void testRetainAll_disjointPreviouslyEmptyUnsupported()
           
 void testRetainAll_disjointPreviouslyNonEmpty()
           
 void testRetainAll_disjointPreviouslyNonEmptyUnsupported()
           
 void testRetainAll_emptyPreviouslyEmpty()
           
 void testRetainAll_emptyPreviouslyEmptyUnsupported()
           
 void testRetainAll_emptyPreviouslyNonEmpty()
           
 void testRetainAll_emptyPreviouslyNonEmptyUnsupported()
           
 void testRetainAll_nullCollectionReferenceEmptySubject()
           
 void testRetainAll_nullCollectionReferenceNonEmptySubject()
           
 void testRetainAll_nullSingletonPreviouslyEmpty()
           
 void testRetainAll_nullSingletonPreviouslyNonEmpty()
           
 void testRetainAll_nullSingletonPreviouslySeveralWithNull()
           
 void testRetainAll_nullSingletonPreviouslySingletonWithNull()
           
 void testRetainAll_partialOverlap()
           
 void testRetainAll_partialOverlapUnsupported()
           
 void testRetainAll_sameElements()
           
 void testRetainAll_sameElementsUnsupported()
           
 void testRetainAll_subset()
           
 void testRetainAll_subsetUnsupported()
           
 void testRetainAll_superset()
           
 void testRetainAll_supersetUnsupported()
           
 
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
 
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

CollectionRetainAllTester

public CollectionRetainAllTester()
Method Detail

setUp

public void setUp()
           throws Exception
Overrides:
setUp in class AbstractContainerTester<Collection<E>,E>
Throws:
Exception

testRetainAll_emptyPreviouslyEmpty

public void testRetainAll_emptyPreviouslyEmpty()

testRetainAll_emptyPreviouslyEmptyUnsupported

public void testRetainAll_emptyPreviouslyEmptyUnsupported()

testRetainAll_emptyPreviouslyNonEmpty

public void testRetainAll_emptyPreviouslyNonEmpty()

testRetainAll_emptyPreviouslyNonEmptyUnsupported

public void testRetainAll_emptyPreviouslyNonEmptyUnsupported()

testRetainAll_disjointPreviouslyEmpty

public void testRetainAll_disjointPreviouslyEmpty()

testRetainAll_disjointPreviouslyEmptyUnsupported

public void testRetainAll_disjointPreviouslyEmptyUnsupported()

testRetainAll_disjointPreviouslyNonEmpty

public void testRetainAll_disjointPreviouslyNonEmpty()

testRetainAll_disjointPreviouslyNonEmptyUnsupported

public void testRetainAll_disjointPreviouslyNonEmptyUnsupported()

testRetainAll_superset

public void testRetainAll_superset()

testRetainAll_supersetUnsupported

public void testRetainAll_supersetUnsupported()

testRetainAll_subset

public void testRetainAll_subset()

testRetainAll_subsetUnsupported

public void testRetainAll_subsetUnsupported()

testRetainAll_sameElements

public void testRetainAll_sameElements()

testRetainAll_sameElementsUnsupported

public void testRetainAll_sameElementsUnsupported()

testRetainAll_partialOverlap

public void testRetainAll_partialOverlap()

testRetainAll_partialOverlapUnsupported

public void testRetainAll_partialOverlapUnsupported()

testRetainAll_containsDuplicatesSizeOne

public void testRetainAll_containsDuplicatesSizeOne()

testRetainAll_containsDuplicatesSizeSeveral

public void testRetainAll_containsDuplicatesSizeSeveral()

testRetainAll_nullSingletonPreviouslyEmpty

public void testRetainAll_nullSingletonPreviouslyEmpty()

testRetainAll_nullSingletonPreviouslyNonEmpty

public void testRetainAll_nullSingletonPreviouslyNonEmpty()

testRetainAll_nullSingletonPreviouslySingletonWithNull

public void testRetainAll_nullSingletonPreviouslySingletonWithNull()

testRetainAll_nullSingletonPreviouslySeveralWithNull

public void testRetainAll_nullSingletonPreviouslySeveralWithNull()

testRetainAll_containsNonNullWithNull

public void testRetainAll_containsNonNullWithNull()

testRetainAll_nullCollectionReferenceEmptySubject

public void testRetainAll_nullCollectionReferenceEmptySubject()

testRetainAll_nullCollectionReferenceNonEmptySubject

public void testRetainAll_nullCollectionReferenceNonEmptySubject()


Copyright © 2010-2011. All Rights Reserved.