Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FixtureCollections is missing a create methods for generic types #35

Open
TWiStErRob opened this issue May 9, 2017 · 0 comments
Open

Comments

@TWiStErRob
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant