trait DBTestSetup[DBTransactor] extends PureharmTestRuntimeLazyConversions
- Source
- DBTestSetup.scala
- Since
25 Jun 2020
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- DBTestSetup
- PureharmTestRuntimeLazyConversions
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Type Members
- final type RT = PureharmTestRuntime
- implicit class TestSetupClassName extends AnyRef
Abstract Value Members
- 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
- abstract def dbTransactorInstance(testOptions: testkit.TestOptions)(implicit rt: RT, logger: testkit.TestLogger): effects.Resource[effects.IO, DBTransactor]
- Attributes
- protected
Concrete Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def _cleanDB(meta: testkit.TestOptions)(implicit rt: RT, logger: testkit.TestLogger): effects.Resource[effects.IO, Unit]
- Attributes
- protected
- def _initDB(testOptions: testkit.TestOptions)(implicit rt: RT, logger: testkit.TestLogger): effects.Resource[effects.IO, Unit]
- Attributes
- protected
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- def flywayConfig(testOptions: testkit.TestOptions)(implicit logger: testkit.TestLogger): Option[FlywayConfig]
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- implicit def phrtToBL(implicit phtr: PureharmTestRuntime): effects.Blocker
- Definition Classes
- PureharmTestRuntimeLazyConversions
- implicit def phrtToBS(implicit phtr: PureharmTestRuntime): BlockingShifter[effects.IO]
- Definition Classes
- PureharmTestRuntimeLazyConversions
- implicit def phrtToCS(implicit phtr: PureharmTestRuntime): effects.ContextShift[effects.IO]
- Definition Classes
- PureharmTestRuntimeLazyConversions
- implicit def phrtToEC(implicit phtr: PureharmTestRuntime): effects.ExecutionContext
- Definition Classes
- PureharmTestRuntimeLazyConversions
- implicit def phrtToTM(implicit phtr: PureharmTestRuntime): effects.Timer[effects.IO]
- Definition Classes
- PureharmTestRuntimeLazyConversions
- def schemaName(prefix: String, testOptions: testkit.TestOptions): SchemaName
- returns
The schema name in the format of: prefix_{getClass.SimpleName()_{testLineNumber}}
- def schemaName(testOptions: testkit.TestOptions): SchemaName
- returns
The schema name in the format of: $${getClass.SimpleName()_$${testLineNumber}}
- def schemaNameFromClass: String
- Attributes
- protected
- def schemaNameFromClassAndLineNumber(meta: testkit.TestOptions): SchemaName
- Attributes
- protected
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- def transactor(testOptions: testkit.TestOptions)(implicit rt: RT, logger: testkit.TestLogger): effects.Resource[effects.IO, DBTransactor]
- def truncateSchemaName(s: SchemaName): SchemaName
- Attributes
- protected
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()