Advertisement
Guest User

Untitled

a guest
Feb 18th, 2015
179
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Scala 0.30 KB | None | 0 0
  1. implicit var scalikeSession: DBSession = null
  2.  
  3.   var connection: java.sql.Connection = null
  4.  
  5.   var db: DB = null
  6.  
  7.   @Before
  8.   override def before() = {
  9.  
  10.     connection = ConnectionPool.borrow()
  11.     db = DB(connection)
  12.     db.begin
  13.     scalikeSession = db.withinTxSession()
  14.  
  15.     beforeTest()
  16.  
  17.   }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement