Packages

trait DBTestSetup[DBTransactor] extends PureharmTestRuntimeLazyConversions

Source
DBTestSetup.scala
Since

25 Jun 2020

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

Type Members

  1. final type RT = PureharmTestRuntime
  2. implicit class TestSetupClassName extends AnyRef

Abstract Value Members

  1. abstract def dbConfig(testOptions: testkit.TestOptions)(implicit logger: testkit.TestLogger): DBConnectionConfig

    Should be overridden to create a connection config appropriate for the test

    Should be overridden to create a connection config appropriate for the test

    To ensure unique schema names for test cases use the extension methods: TestSetupClassName.withSchemaFromClassAndTest or the explicit variants schemaName

  2. abstract def dbTransactorInstance(testOptions: testkit.TestOptions)(implicit rt: RT, logger: testkit.TestLogger): effects.Resource[effects.IO, DBTransactor]
    Attributes
    protected

Concrete Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def _cleanDB(meta: testkit.TestOptions)(implicit rt: RT, logger: testkit.TestLogger): effects.Resource[effects.IO, Unit]
    Attributes
    protected
  5. def _initDB(testOptions: testkit.TestOptions)(implicit rt: RT, logger: testkit.TestLogger): effects.Resource[effects.IO, Unit]
    Attributes
    protected
  6. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  7. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  8. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  9. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  10. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  11. def flywayConfig(testOptions: testkit.TestOptions)(implicit logger: testkit.TestLogger): Option[FlywayConfig]
  12. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  13. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  14. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  15. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  16. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  17. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  18. implicit def phrtToBL(implicit phtr: PureharmTestRuntime): effects.Blocker
    Definition Classes
    PureharmTestRuntimeLazyConversions
  19. implicit def phrtToBS(implicit phtr: PureharmTestRuntime): BlockingShifter[effects.IO]
    Definition Classes
    PureharmTestRuntimeLazyConversions
  20. implicit def phrtToCS(implicit phtr: PureharmTestRuntime): effects.ContextShift[effects.IO]
    Definition Classes
    PureharmTestRuntimeLazyConversions
  21. implicit def phrtToEC(implicit phtr: PureharmTestRuntime): effects.ExecutionContext
    Definition Classes
    PureharmTestRuntimeLazyConversions
  22. implicit def phrtToTM(implicit phtr: PureharmTestRuntime): effects.Timer[effects.IO]
    Definition Classes
    PureharmTestRuntimeLazyConversions
  23. def schemaName(prefix: String, testOptions: testkit.TestOptions): SchemaName

    returns

    The schema name in the format of: prefix_{getClass.SimpleName()_{testLineNumber}}

  24. def schemaName(testOptions: testkit.TestOptions): SchemaName

    returns

    The schema name in the format of: $${getClass.SimpleName()_$${testLineNumber}}

  25. def schemaNameFromClass: String
    Attributes
    protected
  26. def schemaNameFromClassAndLineNumber(meta: testkit.TestOptions): SchemaName
    Attributes
    protected
  27. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  28. def toString(): String
    Definition Classes
    AnyRef → Any
  29. def transactor(testOptions: testkit.TestOptions)(implicit rt: RT, logger: testkit.TestLogger): effects.Resource[effects.IO, DBTransactor]
  30. def truncateSchemaName(s: SchemaName): SchemaName
    Attributes
    protected
  31. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  32. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  33. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()

Inherited from PureharmTestRuntimeLazyConversions

Inherited from AnyRef

Inherited from Any

Ungrouped