Packages

package test

Test helpers to test a Silhouette application.

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. test
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Type Members

  1. final case class FakeAuthenticator(loginInfo: LoginInfo, id: String = UUID.randomUUID().toString, isValid: Boolean = true) extends StorableAuthenticator with Product with Serializable

    A fake authenticator.

    A fake authenticator.

    loginInfo

    The linked login info for an identity.

    id

    The ID of the authenticator.

    isValid

    True if the authenticator is valid, false otherwise.

  2. class FakeAuthenticatorRepository[T <: StorableAuthenticator] extends AuthenticatorRepository[T]

    A fake authenticator repository which persists authenticators in memory.

    A fake authenticator repository which persists authenticators in memory.

    T

    The type of the authenticator to handle.

  3. final case class FakeEnvironment[E <: Env](identities: Seq[(LoginInfo, E.I)], requestProviders: Seq[RequestProvider] = Seq.empty, eventBus: EventBus = EventBus())(implicit executionContext: ExecutionContext, tt: scala.reflect.api.JavaUniverse.TypeTag[E.A]) extends Environment[E] with Product with Serializable

    A fake environment implementation.

    A fake environment implementation.

    E

    The type of the environment.

    identities

    A list of (login info -> identity) pairs to return inside a Silhouette action.

    requestProviders

    The list of request providers.

    eventBus

    The event bus implementation.

    executionContext

    The execution context to handle the asynchronous operations.

    tt

    The type tag of the authenticator type.

  4. final case class FakeIdentity(loginInfo: LoginInfo) extends Identity with Product with Serializable

    A fake identity.

    A fake identity.

    loginInfo

    The linked login info for an identity.

  5. class FakeIdentityService[I <: Identity] extends IdentityService[I]

    A fake identity service implementation which can handle a predefined list of identities.

    A fake identity service implementation which can handle a predefined list of identities.

    I

    The type of the identity to handle.

  6. implicit class FakeRequestWithAuthenticator[A] extends AnyRef

    Provides a method which add an authenticator to a fake request.

    Provides a method which add an authenticator to a fake request.

    A

    The type of the body.

Value Members

  1. implicit def await[T](f: Future[T]): T

    Resolves a future by waiting of the result.

    Resolves a future by waiting of the result.

    T

    The type contained in the future.

    f

    The future to block.

    returns

    The value contained in the future.

    Attributes
    protected
  2. object FakeAuthenticator extends Serializable

    A fake authenticator factory.

  3. object FakeAuthenticatorService

    A fake authenticator service factory.

  4. case object FakeBearerTokenAuthenticatorService extends BearerTokenAuthenticatorService with Product with Serializable

    A fake bearer token authenticator service.

  5. case object FakeCookieAuthenticatorService extends CookieAuthenticatorService with Product with Serializable

    A fake cookie authenticator service.

  6. case object FakeDummyAuthenticatorService extends DummyAuthenticatorService with Product with Serializable

    A fake Dummy authenticator service.

  7. case object FakeJWTAuthenticatorService extends JWTAuthenticatorService with Product with Serializable

    A fake JWT authenticator service.

  8. case object FakeSessionAuthenticatorService extends SessionAuthenticatorService with Product with Serializable

    A fake session authenticator service.

Inherited from AnyRef

Inherited from Any

Ungrouped