public static class MapGenerators.ImmutableMapValuesAsSingletonSetGenerator extends java.lang.Object implements TestMapGenerator<java.lang.String,java.util.Collection<java.lang.Integer>>
| Constructor and Description |
|---|
ImmutableMapValuesAsSingletonSetGenerator() |
| Modifier and Type | Method and Description |
|---|---|
private static java.util.Collection<java.lang.Integer> |
collectionOf(int item) |
java.util.Map<java.lang.String,java.util.Collection<java.lang.Integer>> |
create(java.lang.Object... elements)
Creates a new container containing the given elements.
|
java.util.Map.Entry<java.lang.String,java.util.Collection<java.lang.Integer>>[] |
createArray(int length)
Helper method to create an array of the appropriate type used by this generator.
|
java.lang.String[] |
createKeyArray(int length) |
ImmutableSet<java.lang.Integer>[] |
createValueArray(int length) |
java.lang.Iterable<java.util.Map.Entry<java.lang.String,java.util.Collection<java.lang.Integer>>> |
order(java.util.List<java.util.Map.Entry<java.lang.String,java.util.Collection<java.lang.Integer>>> insertionOrder)
Returns the iteration ordering of elements, given the order in which they were added to the
container.
|
SampleElements<java.util.Map.Entry<java.lang.String,java.util.Collection<java.lang.Integer>>> |
samples()
Returns the sample elements that this generate populates its container with.
|
public ImmutableMapValuesAsSingletonSetGenerator()
public SampleElements<java.util.Map.Entry<java.lang.String,java.util.Collection<java.lang.Integer>>> samples()
TestContainerGeneratorsamples in interface TestContainerGenerator<java.util.Map<java.lang.String,java.util.Collection<java.lang.Integer>>,java.util.Map.Entry<java.lang.String,java.util.Collection<java.lang.Integer>>>private static java.util.Collection<java.lang.Integer> collectionOf(int item)
public java.util.Map<java.lang.String,java.util.Collection<java.lang.Integer>> create(java.lang.Object... elements)
TestContainerGeneratorcreate in interface TestContainerGenerator<java.util.Map<java.lang.String,java.util.Collection<java.lang.Integer>>,java.util.Map.Entry<java.lang.String,java.util.Collection<java.lang.Integer>>>public java.util.Map.Entry<java.lang.String,java.util.Collection<java.lang.Integer>>[] createArray(int length)
TestContainerGeneratorcreateArray in interface TestContainerGenerator<java.util.Map<java.lang.String,java.util.Collection<java.lang.Integer>>,java.util.Map.Entry<java.lang.String,java.util.Collection<java.lang.Integer>>>public java.lang.Iterable<java.util.Map.Entry<java.lang.String,java.util.Collection<java.lang.Integer>>> order(java.util.List<java.util.Map.Entry<java.lang.String,java.util.Collection<java.lang.Integer>>> insertionOrder)
TestContainerGeneratorIf the order is non-deterministic, as with HashSet, this method can return
its input unmodified. Provided that the test suite is built without CollectionFeature.KNOWN_ORDER, the tests will look
only at the returned contents without regard for order.
order in interface TestContainerGenerator<java.util.Map<java.lang.String,java.util.Collection<java.lang.Integer>>,java.util.Map.Entry<java.lang.String,java.util.Collection<java.lang.Integer>>>public java.lang.String[] createKeyArray(int length)
createKeyArray in interface TestMapGenerator<java.lang.String,java.util.Collection<java.lang.Integer>>public ImmutableSet<java.lang.Integer>[] createValueArray(int length)
createValueArray in interface TestMapGenerator<java.lang.String,java.util.Collection<java.lang.Integer>>