I have a method that I am testing if it breaks or not. Because of this I need to pass null values to break it.
I have been using Mockito.nullable(String.class)
in order to match a null value, however this also matches if the parameter is a string and will also match a created string.
Is there a Mockito matcher that ONLY matches a null value?
Aucun commentaire:
Enregistrer un commentaire