You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

27 lines
853 B

package com.xsn.explorer.data
import com.xsn.explorer.data.anorm.TPoSContractPostgresDataHandler
import com.xsn.explorer.data.anorm.dao.TPoSContractDAO
import com.xsn.explorer.data.common.PostgresDataHandlerSpec
import com.xsn.explorer.helpers.DataGenerator
import com.xsn.explorer.models.TPoSContract
class TPoSContractPostgresDataHandlerSpec extends PostgresDataHandlerSpec {
val dao = new TPoSContractDAO
lazy val dataHandler = new TPoSContractPostgresDataHandler(database, dao)
"getBy" should {
"return the contracts matching the owner or the merchant address" in {
val owner = DataGenerator.randomAddress
val merchant = DataGenerator.randomAddress
pending
}
}
private def create(contract: TPoSContract): Unit = {
val _ = database.withConnection { implicit conn =>
dao.create(contract)
}
}
}