* All default values removed from code and loaded from akka-actor-reference.conf, located in src/main/resources (included in jar) * Default test configuration included in AkkaSpec instead of using akka.test.conf, avoids problems when running test (in IDE) and forgetting to use -Dakka.mode=test. * System.properties used first, if availble * Next step will be to split akka-actor-reference.conf in separate -reference for each module
This commit is contained in:
parent
80d766b07b
commit
4b8f11ea92
137 changed files with 8689 additions and 1411 deletions
|
|
@ -8,7 +8,7 @@ import akka.util.duration._
|
|||
//#imports
|
||||
import akka.actor.Actor
|
||||
import akka.event.Logging
|
||||
import akka.config.Configuration
|
||||
import com.typesafe.config.Config
|
||||
|
||||
//#imports
|
||||
|
||||
|
|
@ -22,7 +22,7 @@ class MyActor extends Actor {
|
|||
}
|
||||
//#my-actor
|
||||
|
||||
class ActorDocSpec extends AkkaSpec(Configuration("akka.loglevel" -> "INFO")) {
|
||||
class ActorDocSpec extends AkkaSpec(Map("akka.loglevel" -> "INFO")) {
|
||||
|
||||
"creating actor with AkkaSpec.actorOf" in {
|
||||
//#creating-actorOf
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue