📅  最后修改于: 2022-03-11 14:57:14.341000             🧑  作者: Mango
FakeApplication fakeApp = Helpers.fakeApplication();
FakeApplication fakeAppWithGlobal = fakeApplication(new GlobalSettings() {
@Override
public void onStart(Application app) {
System.out.println("Starting FakeApplication");
}
});
FakeApplication fakeAppWithMemoryDb = fakeApplication(inMemoryDatabase("test"));