I have been using this before for functional tests using a live application:
running(fakeApplication(inMemoryDatabase()), () -> { // test here });
Since I am using Guice, I now want to utilize the
GuiceApplicationBuilder as stated in the
documentation, no real need for the fake application:
Application application = new GuiceApplicationBuilder()
.overrides(bind(Component.class).to(MockComponent.class))
.build();
running(application, () -> { // test here });
I'm a little lost here how to not use fakeApplication() anymore since I need to override bindings, but still be able to specify a database. Thanks!