Class ReserializingTestSetGenerator<E>
java.lang.Object
com.google.common.collect.testing.ReserializingTestCollectionGenerator<E>
com.google.common.collect.testing.ReserializingTestSetGenerator<E>
- All Implemented Interfaces:
TestCollectionGenerator<E>, TestContainerGenerator<Collection<E>, E>, TestSetGenerator<E>
@GwtIncompatible
public class ReserializingTestSetGenerator<E>
extends ReserializingTestCollectionGenerator<E>
implements TestSetGenerator<E>
Reserializes the sets created by another test set generator.
TODO: make CollectionTestSuiteBuilder test reserialized collections
-
Method Summary
Modifier and TypeMethodDescriptionCreates a new container containing the given elements.static <E> TestSetGenerator<E> newInstance(TestSetGenerator<E> delegate) Methods inherited from class ReserializingTestCollectionGenerator
createArray, newInstance, order, samplesMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface TestContainerGenerator
createArray, order, samples
-
Method Details
-
newInstance
-
create
Description copied from interface:TestContainerGeneratorCreates a new container containing the given elements. TODO: would be nice to figure out how to use E... or E[] as a parameter type, but this doesn't seem to work because Java creates an array of the erased type.- Specified by:
createin interfaceTestContainerGenerator<Collection<E>, E>- Specified by:
createin interfaceTestSetGenerator<E>- Overrides:
createin classReserializingTestCollectionGenerator<E>
-