📜  如何在 play 框架中运行功能测试 - 无论代码示例

📅  最后修改于: 2022-03-11 14:57:14.341000             🧑  作者: Mango

代码示例1
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"));