com.typesafe.slick.testkit.util

TestDB

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 Learn more about scaladoc diagrams
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. TestDB
  2. AnyRef
  3. Any
Implicitly
  1. by any2stringadd
  2. by any2stringfmt
  3. by any2ArrowAssoc
  4. by any2Ensuring
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Type Members

  1. abstract type Driver <: BasicDriver

Abstract Value Members

  1. abstract val confName: String

    The test database name

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

    Create the Database object for this test database configuration

  3. abstract val driver: Driver

    The Slick driver for the database

  4. abstract def dropUserArtifacts(implicit session: slick.profile.BasicProfile.Backend.Session): Unit

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

Concrete Value Members

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

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

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

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

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

    Definition Classes
    AnyRef
  7. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  8. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  9. def capabilities: Set[Capability]

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

  10. def cleanUpAfter(): Unit

    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().

  11. def cleanUpBefore(): Unit

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

  12. def clone(): AnyRef

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

  14. def confString(path: String): String

  15. def confStrings(path: String): Seq[String]

  16. lazy val config: Config

    The test configuration

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

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

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

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

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

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

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

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

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

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

    Definition Classes
    AnyRef → Any
  27. def isEnabled: Boolean

    Check if this test database is enabled

  28. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  29. def isPersistent: Boolean

    Indicates whether the database persists after closing the last connection

  30. def isShared: Boolean

    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.

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

    Definition Classes
    AnyRef
  32. final def notify(): Unit

    Definition Classes
    AnyRef
  33. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  34. lazy val profile: Driver.profile.type

    The Slick driver for the database

  35. final def synchronized[T0](arg0: ⇒ T0): T0

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

    The tests to run for this configuration.

  37. def toString(): String

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

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

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

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

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

Shadowed Implicit Value Members

  1. val self: Any

    Implicit information
    This member is added by an implicit conversion from TestDB to StringAdd performed by method any2stringadd in scala.Predef.
    Shadowing
    This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error.
    To access this member you can use a type ascription:
    (testDB: StringAdd).self
    Definition Classes
    StringAdd
  2. val self: Any

    Implicit information
    This member is added by an implicit conversion from TestDB to StringFormat performed by method any2stringfmt in scala.Predef.
    Shadowing
    This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error.
    To access this member you can use a type ascription:
    (testDB: StringFormat).self
    Definition Classes
    StringFormat

Deprecated Value Members

  1. def x: TestDB

    Implicit information
    This member is added by an implicit conversion from TestDB to ArrowAssoc[TestDB] performed by method any2ArrowAssoc in scala.Predef.
    Shadowing
    This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error.
    To access this member you can use a type ascription:
    (testDB: ArrowAssoc[TestDB]).x
    Definition Classes
    ArrowAssoc
    Annotations
    @deprecated
    Deprecated

    (Since version 2.10.0) Use leftOfArrow instead

  2. def x: TestDB

    Implicit information
    This member is added by an implicit conversion from TestDB to Ensuring[TestDB] performed by method any2Ensuring in scala.Predef.
    Shadowing
    This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error.
    To access this member you can use a type ascription:
    (testDB: Ensuring[TestDB]).x
    Definition Classes
    Ensuring
    Annotations
    @deprecated
    Deprecated

    (Since version 2.10.0) Use resultOfEnsuring instead

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion any2stringadd from TestDB to StringAdd

Inherited by implicit conversion any2stringfmt from TestDB to StringFormat

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

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

Ungrouped