|
|
@ -1,6 +1,7 @@
|
|
|
|
package space.kklochko.jdbc_hospital_example.db.repositories
|
|
|
|
package space.kklochko.jdbc_hospital_example.db.repositories
|
|
|
|
|
|
|
|
|
|
|
|
import groovy.sql.Sql
|
|
|
|
import groovy.sql.Sql
|
|
|
|
|
|
|
|
import space.kklochko.jdbc_hospital_example.config.factories.LoadDataBaseConfigFromEnvFile
|
|
|
|
import space.kklochko.jdbc_hospital_example.config.models.DataBaseConfig
|
|
|
|
import space.kklochko.jdbc_hospital_example.config.models.DataBaseConfig
|
|
|
|
import space.kklochko.jdbc_hospital_example.db.factories.DataBaseConnection
|
|
|
|
import space.kklochko.jdbc_hospital_example.db.factories.DataBaseConnection
|
|
|
|
import space.kklochko.jdbc_hospital_example.models.Indicator
|
|
|
|
import space.kklochko.jdbc_hospital_example.models.Indicator
|
|
|
@ -24,7 +25,7 @@ class IndicatorRepositorySpec extends Specification {
|
|
|
|
DataBaseConnection dbc
|
|
|
|
DataBaseConnection dbc
|
|
|
|
|
|
|
|
|
|
|
|
def setupSpec() {
|
|
|
|
def setupSpec() {
|
|
|
|
db = new DataBaseConfig()
|
|
|
|
db = (new LoadDataBaseConfigFromEnvFile()).load()
|
|
|
|
dbc = new DataBaseConnection(db)
|
|
|
|
dbc = new DataBaseConnection(db)
|
|
|
|
|
|
|
|
|
|
|
|
IndicatorRepository repo = new IndicatorRepository(dbc)
|
|
|
|
IndicatorRepository repo = new IndicatorRepository(dbc)
|
|
|
|