Re: [akka-user] Re: Application.conf not being used under test

2015-01-06 Thread Patrik Nordwall
I would guess it is a classpath ordering issue. To be sure you load the right config from tests you can use another file name for the test config name. In the tests you load that config and pass to the factory method of the ActorSystem. /Patrik On Mon, Jan 5, 2015 at 1:45 PM, Anders Båtstrand

Re: [akka-user] Re: Application.conf not being used under test

2015-01-06 Thread Havoc Pennington
See also -Dconfig.trace=loads (documented at https://github.com/typesafehub/config#debugging-your-configuration ) That should tell you what's happening. Havoc On Tue, Jan 6, 2015 at 8:34 AM, Patrik Nordwall patrik.nordw...@gmail.com wrote: I would guess it is a classpath ordering issue. To be

[akka-user] Re: Application.conf not being used under test

2015-01-05 Thread Anders Båtstrand
How do you load the configuration? And could you post the output of Config.origin() after you have loaded the configuration? I had a problem with configuration being overidden, but solved it by reading the javadoc on ConfigFactor.parseResourcesAnySyntax (cleared up a few things for me). Best