Interface OneSizeTestContainerGenerator<T, E extends @Nullable Object>
- All Superinterfaces:
TestContainerGenerator<T,E>, TestSubjectGenerator<T>
- All Known Implementing Classes:
OneSizeGenerator
@GwtCompatible
@NullMarked
public interface OneSizeTestContainerGenerator<T, E extends @Nullable Object>
extends TestSubjectGenerator<T>, TestContainerGenerator<T,E>
The subject-generator interface accepted by Collection testers, for testing a Collection at one
particular
CollectionSize.
This interface should not be implemented outside this package; PerCollectionSizeTestSuiteBuilder constructs instances of it from a more general TestCollectionGenerator.
- Author:
- George van den Driessche
-
Method Summary
Methods inherited from interface TestContainerGenerator
create, createArray, order, samplesModifier and TypeMethodDescriptionCreates a new container containing the given elements.E[]createArray(int length) Helper method to create an array of the appropriate type used by this generator.Returns the iteration ordering of elements, given the order in which they were added to the container.samples()Returns the sample elements that this generate populates its container with.Methods inherited from interface TestSubjectGenerator
createTestSubject
-
Method Details
-
getInnerGenerator
TestContainerGenerator<T,E> getInnerGenerator() -
getSampleElements
-
getCollectionSize
CollectionSize getCollectionSize()
-