michaelpisula / akka-journal-inmemory   0.2.1

GitHub

An In-Memory Journal for Akka Persistence, useful for unit tests, to avoid one failing test to lead to other failures due to replayed messages.

Scala versions: 2.11 2.10

InMemory Journal for Akka Persistence

A journal plugin for akka-persistence using simple TreeMaps. This is a journal you should use for testing only. In tests it can be useful to avoid one failed test to cause other tests to fail as well. Currently the journal will log if any messages were left unconfirmed when it closes down. For our internal tests we found it useful, to let the journal exit the VM to signalize where unconfirmed messages occur. If there is enough interest we will add this as a configurable feature.

Requirements

Akka 2.3.0 or higher => version 0.1.2 Akka 2.3.4 or higher => version 0.2.1

The 0.2.1 version is published for both Scala 2.11.1 and 2.10.4.

Installation

The artifact has been published to Maven Central. Include it in your build.sbt like this:

libraryDependencies += "com.github.michaelpisula" %% "akka-persistence-inmemory" % "0.2.1"

Configuration

Add to your application.conf

akka.persistence.journal.plugin = "in-memory-journal"