Mockito has a very nice feature that allows you to verify what parameters were used when a method was executed. For example: [crayon-514c9028b58a8/] However, when using generic typed objects, some problems rise up. For example, the following won’t work: [crayon-514c9028b58e6/] … Continue reading
The post Tasty Test Tip: Using ArgumentCaptor for generic collections with Mockito appeared first on JDriven Blog.