I am trying to verify if a method in all objects of an array is called once.
I am using powermockito and currently this is done by iterating through the objects
for(Layer layer : layers){
verify(layer,times(1)).reset();
}
Is there a more efficient way to check if all objects in the array are called with the method once ? i.e. without iteration