Should we mock the entities array from FishTank class if we use it in a test?
Should we mock the entities array from FishTank class if we use it in a test?
t6charti
#2
It’s not very trivial to mock a static field, unfortunately. Ideally you would, but for the purposes of A2, just making a “resetTank()” method that clears it is probably fine for the purposes of writing unit tests.