public static class MapGenerators.ImmutableMapValuesAsSingletonSetGenerator extends Object implements TestMapGenerator<String,Collection<Integer>>
| Constructor and Description |
|---|
ImmutableMapValuesAsSingletonSetGenerator() |
| Modifier and Type | Method and Description |
|---|---|
Map<String,Collection<Integer>> |
create(Object... elements)
Creates a new container containing the given elements.
|
Map.Entry<String,Collection<Integer>>[] |
createArray(int length)
Helper method to create an array of the appropriate type used by this generator.
|
String[] |
createKeyArray(int length) |
com.google.common.collect.ImmutableSet<Integer>[] |
createValueArray(int length) |
Iterable<Map.Entry<String,Collection<Integer>>> |
order(List<Map.Entry<String,Collection<Integer>>> insertionOrder)
Returns the iteration ordering of elements, given the order in which they were added to the
container.
|
SampleElements<Map.Entry<String,Collection<Integer>>> |
samples()
Returns the sample elements that this generate populates its container with.
|
public ImmutableMapValuesAsSingletonSetGenerator()
public SampleElements<Map.Entry<String,Collection<Integer>>> samples()
TestContainerGeneratorsamples in interface TestContainerGenerator<Map<String,Collection<Integer>>,Map.Entry<String,Collection<Integer>>>public Map<String,Collection<Integer>> create(Object... elements)
TestContainerGeneratorcreate in interface TestContainerGenerator<Map<String,Collection<Integer>>,Map.Entry<String,Collection<Integer>>>public Map.Entry<String,Collection<Integer>>[] createArray(int length)
TestContainerGeneratorcreateArray in interface TestContainerGenerator<Map<String,Collection<Integer>>,Map.Entry<String,Collection<Integer>>>public Iterable<Map.Entry<String,Collection<Integer>>> order(List<Map.Entry<String,Collection<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<Map<String,Collection<Integer>>,Map.Entry<String,Collection<Integer>>>public String[] createKeyArray(int length)
createKeyArray in interface TestMapGenerator<String,Collection<Integer>>public com.google.common.collect.ImmutableSet<Integer>[] createValueArray(int length)
createValueArray in interface TestMapGenerator<String,Collection<Integer>>Copyright © 2010–2019. All rights reserved.