Essentially all methods on that class whose parameter names are innerType, keyType, valueType should have an overload that accepts Type. For example: right now it's not possible to create a List<Map<String, Integer>> through fixture.collections().createCollection(List.class, Map.class), because the innerType is not enough to know if it needs to create the strings and ints inside. As a workaround we can use fixture.create(new SpecimenType<List<Map<String, Integer>>>(){}), but notice for example that in this case we can't specify the size of the collection.
Essentially all methods on that class whose parameter names are
innerType
,keyType
,valueType
should have an overload that acceptsType
. For example: right now it's not possible to create aList<Map<String, Integer>>
throughfixture.collections().createCollection(List.class, Map.class)
, because theinnerType
is not enough to know if it needs to create the strings and ints inside. As a workaround we can usefixture.create(new SpecimenType<List<Map<String, Integer>>>(){})
, but notice for example that in this case we can't specify the size of the collection.