Java Code Examples for play.test.Helpers#fakeApplication()

The following examples show how to use play.test.Helpers#fakeApplication() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: InfoExtractorTest.java    From dr-elephant with Apache License 2.0 4 votes vote down vote up
@Before
public void startApp() throws Exception {
  app = Helpers.fakeApplication(Helpers.inMemoryDatabase());
  Helpers.start(app);
}
 
Example 2
Source File: ApplicationTest.java    From dr-elephant with Apache License 2.0 4 votes vote down vote up
@BeforeClass
public static void startApp() {
  app = Helpers.fakeApplication(Helpers.inMemoryDatabase());
  Helpers.start(app);
}
 
Example 3
Source File: FakeApplicationTest.java    From htwplus with MIT License 4 votes vote down vote up
@BeforeClass
public static void startApp() {
    app = Helpers.fakeApplication();
    Helpers.start(app);
}
 
Example 4
Source File: GeolocationCacheTest.java    From play-geolocation-module.edulify.com with Apache License 2.0 4 votes vote down vote up
private Application getApplication(boolean cacheOn) {
  Map<String, Object> config = new HashMap<>();
  config.put("geolocation.cache.on", cacheOn);
  return Helpers.fakeApplication(config);
}
 
Example 5
Source File: SitemapControllerTest.java    From play-sitemap-module.edulify.com with Apache License 2.0 4 votes vote down vote up
@BeforeClass
public static void startApp() {
  application = Helpers.fakeApplication();
  Helpers.start(application);
}
 
Example 6
Source File: AnnotationUrlProviderTest.java    From play-sitemap-module.edulify.com with Apache License 2.0 4 votes vote down vote up
@BeforeClass
public static void startApp() {
  application = Helpers.fakeApplication();
  Helpers.start(application);
}