|
Play Framework/Scala example source code file (FakeApplication.scala)
The FakeApplication.scala Play Framework example source code/* * Copyright (C) 2009-2013 Typesafe Inc. <http://www.typesafe.com> */ package play.api import play.core.SourceMapper import java.io.File /** * Fake application as used by Play core tests. This is needed since Play core can't depend on the Play test API. * It's also a lot simpler, doesn't load default config files etc. */ case class FakeApplication(config: Map[String, Any] = Map(), path: File = new File("."), sources: Option[SourceMapper] = None, mode: Mode.Mode = Mode.Test, global: GlobalSettings = DefaultGlobal, plugins: Seq[Plugin] = Nil) extends Application { val classloader = Thread.currentThread.getContextClassLoader lazy val configuration = Configuration.from(config) } Other Play Framework source code examplesHere is a short list of links related to this Play Framework FakeApplication.scala source code file: |
... this post is sponsored by my books ... | |
#1 New Release! |
FP Best Seller |
Copyright 1998-2021 Alvin Alexander, alvinalexander.com
All Rights Reserved.
A percentage of advertising revenue from
pages under the /java/jwarehouse
URI on this website is
paid back to open source projects.