add hook before each persistence TCK test case
This commit is contained in:
parent
6f06e60480
commit
edc92eb53e
1 changed files with 8 additions and 0 deletions
|
|
@ -46,9 +46,17 @@ abstract class JournalSpec(config: Config) extends PluginSpec(config) with MayVe
|
|||
super.beforeEach()
|
||||
senderProbe = TestProbe()
|
||||
receiverProbe = TestProbe()
|
||||
preparePersistenceId(pid)
|
||||
writeMessages(1, 5, pid, senderProbe.ref, writerUuid)
|
||||
}
|
||||
|
||||
/**
|
||||
* Overridable hook that is called before populating the journal for the next
|
||||
* test case. `pid` is the `persistenceId` that will be used in the test.
|
||||
* This method may be needed to clean pre-existing events from the log.
|
||||
*/
|
||||
def preparePersistenceId(pid: String): Unit = ()
|
||||
|
||||
/**
|
||||
* Implementation may override and return false if it does not
|
||||
* support atomic writes of several events, as emitted by `persistAll`.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue