Trait/Object

com.typesafe.slick.testkit.util

TestDB

Related Docs: object TestDB | package util

Permalink

trait TestDB extends AnyRef

Describes a database against which you can run TestKit tests. It includes features such as reading the configuration file, setting up a DB connection, removing DB files left over by a test run, etc.

Source
TestDB.scala
Linear Supertypes
AnyRef, Any
Known Subclasses
Type Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. TestDB
  2. AnyRef
  3. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. abstract type Profile <: BasicProfile

    Permalink

Abstract Value Members

  1. abstract val confName: String

    Permalink

    The test database name

  2. abstract def createDB(): slick.basic.BasicProfile.Backend.Database

    Permalink

    Create the Database object for this test database configuration

  3. abstract def dropUserArtifacts(implicit session: slick.basic.BasicProfile.Backend.Session): Unit

    Permalink

    This method is called between individual test methods to remove all database artifacts that were created by the test.

  4. abstract val profile: Profile

    Permalink

    The profile for the database

Concrete Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. def +(other: String): String

    Permalink
    Implicit information
    This member is added by an implicit conversion from TestDB to any2stringadd[TestDB] performed by method any2stringadd in scala.Predef.
    Definition Classes
    any2stringadd
  4. def ->[B](y: B): (TestDB, B)

    Permalink
    Implicit information
    This member is added by an implicit conversion from TestDB to ArrowAssoc[TestDB] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  5. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  6. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  7. def capabilities: Set[Capability]

    Permalink

    The capabilities of the Slick profile, possibly modified for this test configuration.

  8. def cleanUpAfter(): Unit

    Permalink

    This method is called to clean up after running all tests.

    This method is called to clean up after running all tests. It defaults to cleanUpBefore().

  9. def cleanUpBefore(): Unit

    Permalink

    This method is called to clean up before running all tests.

  10. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  11. def confOptionalString(path: String): Option[String]

    Permalink
  12. def confString(path: String): String

    Permalink
  13. def confStrings(path: String): Seq[String]

    Permalink
  14. lazy val config: Config

    Permalink

    The test configuration

  15. def ensuring(cond: (TestDB) ⇒ Boolean, msg: ⇒ Any): TestDB

    Permalink
    Implicit information
    This member is added by an implicit conversion from TestDB to Ensuring[TestDB] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  16. def ensuring(cond: (TestDB) ⇒ Boolean): TestDB

    Permalink
    Implicit information
    This member is added by an implicit conversion from TestDB to Ensuring[TestDB] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  17. def ensuring(cond: Boolean, msg: ⇒ Any): TestDB

    Permalink
    Implicit information
    This member is added by an implicit conversion from TestDB to Ensuring[TestDB] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  18. def ensuring(cond: Boolean): TestDB

    Permalink
    Implicit information
    This member is added by an implicit conversion from TestDB to Ensuring[TestDB] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  19. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  20. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  21. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  22. def formatted(fmtstr: String): String

    Permalink
    Implicit information
    This member is added by an implicit conversion from TestDB to StringFormat[TestDB] performed by method StringFormat in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @inline()
  23. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  24. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  25. def isEnabled: Boolean

    Permalink

    Check if this test database is enabled

  26. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  27. def isPersistent: Boolean

    Permalink

    Indicates whether the database persists after closing the last connection

  28. def isShared: Boolean

    Permalink

    Indicates whether the database's sessions have shared state.

    Indicates whether the database's sessions have shared state. When a database is shared but not persistent, Testkit keeps a session open to make it persistent.

  29. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  30. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  31. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  32. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  33. def testClasses: Seq[Class[_ <: GenericTest[_ >: Null <: TestDB]]]

    Permalink

    The tests to run for this configuration.

  34. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  35. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  36. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  37. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  38. def [B](y: B): (TestDB, B)

    Permalink
    Implicit information
    This member is added by an implicit conversion from TestDB to ArrowAssoc[TestDB] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion any2stringadd from TestDB to any2stringadd[TestDB]

Inherited by implicit conversion StringFormat from TestDB to StringFormat[TestDB]

Inherited by implicit conversion Ensuring from TestDB to Ensuring[TestDB]

Inherited by implicit conversion ArrowAssoc from TestDB to ArrowAssoc[TestDB]

Ungrouped