To make tests independent of one another it is required to reset sequence number. Calling resetSequenceNumberon all used factories might by burdensome or easily oversighted when multiple factories are used in single file. It would be great to have a method like Factory.resetAllSequenceNumbers() which would reset sequence numbers in all factories at once.
To make tests independent of one another it is required to reset sequence number. Calling
resetSequenceNumber
on all used factories might by burdensome or easily oversighted when multiple factories are used in single file. It would be great to have a method likeFactory.resetAllSequenceNumbers()
which would reset sequence numbers in all factories at once.