Mockito; verify method was called with list, ignore order of elements in list
As noted in another answer, if you don’t care about the order, you might do best to change the interface so it doesn’t care about the order. If order matters in the code but not in a specific test, you can use the ArgumentCaptor as you did. It clutters the code a bit. If this … Read more