Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- implicit var scalikeSession: DBSession = null
- var connection: java.sql.Connection = null
- var db: DB = null
- @Before
- override def before() = {
- connection = ConnectionPool.borrow()
- db = DB(connection)
- db.begin
- scalikeSession = db.withinTxSession()
- beforeTest()
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement