--
You received this message because you are subscribed to the Google Groups "mockito" group.
To post to this group, send email to moc...@googlegroups.com.
To unsubscribe from this group, send email to mockito+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/mockito?hl=en.
Hi Danny,The class that it's complaining about is [Ljava.util.Date, which is the reified type of an array of Dates. The point is that arrays are final. Also, why would you want to mock an array?It is usually quite simple to create an array.
> To unsubscribe from this group, send email to mockito+u...@googlegroups.com.
doReturn(someArray).when(spyObject.someRealMethod)
--
Brice
> --
> You received this message because you are subscribed to the Google Groups "mockito" group.
> To post to this group, send email to moc...@googlegroups.com.
> To unsubscribe from this group, send email to mockito+u...@googlegroups.com.