Config Akka application.conf unit test

614 views
Skip to first unread message

Politrons

unread,
Feb 4, 2017, 2:59:36 AM2/4/17
to Akka User List
I´m doing some practical examples with Akka. Everything fine so far. But now that I start looking Akka persistence, in all blogs that I read they said that I need to configure the persistence in the application.conf

akka {
persistence {
journal.plugin = "inmemory-journal"
snapshot-store.plugin = "inmemory-snapshot-store"
}
}
My project it´s just a gradle project. And I don't understand how to glue this config file with my test cases that need to use the in memory persistence.

Someone can point me in the right direction about how to glue the config with my example execution.

Here you can see the code

https://github.com/politrons/Akka/tree/master/src/main/scala/persistence

When I run my object App I receive this error

Caused by: java.lang.IllegalArgumentException: requirement failed: default journal plugin is not configured, see 'reference.conf'

Konrad Malawski

unread,
Feb 4, 2017, 3:04:01 AM2/4/17
to akka...@googlegroups.com, Politrons
You're missing src/main/reference/application.conf 


Happy hakking


-- 
Konrad `ktoso` Malawski
Akka @ Lightbend
--
>>>>>>>>>> Read the docs: http://akka.io/docs/
>>>>>>>>>> Check the FAQ: http://doc.akka.io/docs/akka/current/additional/faq.html
>>>>>>>>>> Search the archives: https://groups.google.com/group/akka-user
---
You received this message because you are subscribed to the Google Groups "Akka User List" group.
To unsubscribe from this group and stop receiving emails from it, send an email to akka-user+...@googlegroups.com.
To post to this group, send email to akka...@googlegroups.com.
Visit this group at https://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.

Politrons

unread,
Feb 4, 2017, 5:41:56 AM2/4/17
to Akka User List, poli...@gmail.com
I already had applicaiton.conf and reference.conf in that folder, but I did not pull yet
In both conf files I have 

akka.persistence {

journal.plugin = "inmemory-journal"
snapshot-store.plugin = "inmemory-snapshot-store"
}

Still when I run the object app the Akka exception says

Caused by: java.lang.IllegalArgumentException: requirement failed: 'reference.conf' is missing persistence plugin config path: 'inmemory-journal'

I´ll read the link that you post. I will get ideas form there. Thanks!
Reply all
Reply to author
Forward
0 new messages