SharedApplication

io.github.frikit.twirlspec.render.SharedApplication

One Play application per distinct configuration, shared by every spec in the JVM.

Attributes

Source
SharedApplication.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

def apply(configuration: Map[String, Any]): Application

The application for this configuration, building it on first use.

The application for this configuration, building it on first use.

Attributes

Source
SharedApplication.scala
def instanceCount: Int

How many applications this JVM has built — asserted by twirl-spec's own tests, and useful in a service that suspects it is still booting per spec.

How many applications this JVM has built — asserted by twirl-spec's own tests, and useful in a service that suspects it is still booting per spec.

Attributes

Source
SharedApplication.scala

Concrete fields

val viewTestDefaults: Map[String, Any]

Configuration every view test wants: no metrics, no auditing, no CSP nonce.

Configuration every view test wants: no metrics, no auditing, no CSP nonce.

Languages are deliberately absent. They are the service's to declare, and it already has: play.i18n.langs in its conf/application.conf, or Play's own default of en where it says nothing. A value here would override the service's file, and every Welsh spec would then render in English and pass.

Attributes

Source
SharedApplication.scala