AutoRollbackLike

trait AutoRollbackLike extends After with LoanPattern

AutoRollback support for specs2

trait LoanPattern
trait After
trait Context
trait Scope
trait Scope
class Object
trait Matchable
class Any

Type members

Inherited types

type Closable = { def close(): Unit; }
Inherited from
LoanPattern

Value members

Concrete methods

override def after: Any
Definition Classes
After
def db(): DB

Creates a scalikejdbc.DB instance.

Creates a scalikejdbc.DB instance.

Returns

DB instance

def fixture(implicit session: DBSession): Unit

Prepares database for the test.

Prepares database for the test.

Value Params
session

db session implicitly

Inherited methods

def andThen(a: After): After
Inherited from
After
def apply[T](a: => T)(implicit AsResult[T]): Result
Inherited from
After
def compose(a: After): After
Inherited from
After
def futureUsing[R <: Closable, A](resource: R)(f: R => Future[A])(implicit ec: ExecutionContext): Future[A]

Guarantees a Closeable resource will be closed after being passed to a block that takes the resource as a parameter and returns a Future.

Guarantees a Closeable resource will be closed after being passed to a block that takes the resource as a parameter and returns a Future.

Inherited from
LoanPattern
def using[R <: Closable, A](resource: R)(f: R => A): A
Inherited from
LoanPattern

Concrete fields

val _db: DB

Implicits

Implicits

implicit val session: DBSession