{"action":"opened","issue":{"url":"https://api.github.com/repos/playframework/playframework/issues/4466","labels_url":"https://api.github.com/repos/playframework/playframework/issues/4466/labels{/name}","comments_url":"https://api.github.com/repos/playframework/playframework/issues/4466/comments","events_url":"https://api.github.com/repos/playframework/playframework/issues/4466/events","html_url":"https://github.com/playframework/playframework/issues/4466","id":76719136,"number":4466,"title":"Extending GuiceApplicationLoader has no effect in test with fakeApplication.","user":{"login":"jCalamari","id":9678999,"avatar_url":"https://avatars.githubusercontent.com/u/9678999?v=3","gravatar_id":"","url":"https://api.github.com/users/jCalamari","html_url":"https://github.com/jCalamari","followers_url":"https://api.github.com/users/jCalamari/followers","following_url":"https://api.github.com/users/jCalamari/following{/other_user}","gists_url":"https://api.github.com/users/jCalamari/gists{/gist_id}","starred_url":"https://api.github.com/users/jCalamari/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jCalamari/subscriptions","organizations_url":"https://api.github.com/users/jCalamari/orgs","repos_url":"https://api.github.com/users/jCalamari/repos","events_url":"https://api.github.com/users/jCalamari/events{/privacy}","received_events_url":"https://api.github.com/users/jCalamari/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-05-15T12:51:52Z","updated_at":"2015-05-15T12:51:52Z","closed_at":null,"body":"I am migrating play `2.3.8` app to `2.4.0-RC3`. I extended `GuiceApplicationLoader`, added following entry to `application.conf`:\r\n\r\n`play.application.loader = classname`\r\n\r\nApplications itself runs with no issues, however when running tests, guice dependencies are not injected:\r\n\r\n```\r\nimport play.test.WithApplication;\r\n\r\nimport static play.test.Helpers.GET;\r\nimport static play.test.Helpers.fakeRequest;\r\nimport static play.test.Helpers.route;\r\n\r\npublic class Test extends WithApplication {\r\n\r\n    @org.junit.Test\r\n    public void test() {\r\n        route(fakeRequest(GET, \"/\"));\r\n    }\r\n}\r\n\r\n```\r\n`fakeApplication` fails to start:\r\n\r\n>[info] application - Creating Pool for datasource 'test'\r\n[info] p.a.l.c.ActorSystemProvider - Starting application default Akka system: application\r\n[info] p.a.l.c.ActorSystemProvider - Shutdown application default Akka system: application\r\n[info] application - Shutting down connection pool.\r\n[info] application - Shutting down connection pool.\r\n\r\n>com.google.inject.ProvisionException: Unable to provision, see the following errors:\r\n\r\n>1) No implementation for models.services.agent.IAgentService was bound.\r\n while locating models.services.agent.IAgentService\r\n    for field at controllers.AgentController.agentService(AgentController.java:13)\r\n  while locating com.google.inject.Provider<controllers.AgentController>\r\n    for parameter 9 at router.Routes.<init>(routes_routing.scala:108)\r\n  while locating router.Routes\r\n  while locating play.api.test.FakeRouterProvider\r\n  while locating play.api.routing.Router\r\n\r\n\r\n\r\n\r\n"}}