I am writing a module with Akka-persistance, and have run into a problem in unittesting: all the events are sourced during the test, and therefore the state changes. when i run hte test suite again, the events are replayed, so the actor does not start in the initial state it should have in the first place.
the crude solution is to delete the local event-store every time, or change the persistenceId every time. both are too crude.
is there a way to incorporate it into the the test suite?