I am trying to compare two lists with each other:
ListA (a1,a2,a3,...) ListB (b1,b2,b3,...)
I want a1 to compare with b1, a2-b2, a3-b3, ....
But I have to use a different method and cannot use .equals!
I wrote my own interlocutor. But I have to use a for loop to iterate over the elements. is there a better solution?
for(int i = 0;i<expected.size();i++){ assertThat(item.get(i),equalsModel(expected.get(0))); }
source share