FlexTradeUKLtd / jfixture

JFixture is an open source library based on the popular .NET library, AutoFixture
MIT License
105 stars 22 forks source link

Exception when evaluating void return methods in DefaultFactoryMethodQuery #9

Closed richkeenan closed 9 years ago

richkeenan commented 9 years ago

In the returnTypeIsAssignable method an exception is thrown if the return type of a method is void. This is caused by the SpecimenType class not handling void correctly when building the rawType and genericTypeArguments.

I think modifying the SpecimenType to handle void correctly should correct the original problem.