Relative Content

Tag Archive for javamockito

Mockito: verify only non-null fields

I need to adapt a Mockito verify method to check if the first parameter is equal to the expected value, and the second parameter, being a complex object, may have some fields set to null. I want to verify only the fields that are not null, that have a value.