Update the repository for the Indicator.
This commit is contained in:
+2
-1
@@ -1,6 +1,7 @@
|
||||
package space.kklochko.jdbc_hospital_example.db.repositories
|
||||
|
||||
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.db.factories.DataBaseConnection
|
||||
import space.kklochko.jdbc_hospital_example.models.Indicator
|
||||
@@ -24,7 +25,7 @@ class IndicatorRepositorySpec extends Specification {
|
||||
DataBaseConnection dbc
|
||||
|
||||
def setupSpec() {
|
||||
db = new DataBaseConfig()
|
||||
db = (new LoadDataBaseConfigFromEnvFile()).load()
|
||||
dbc = new DataBaseConnection(db)
|
||||
|
||||
IndicatorRepository repo = new IndicatorRepository(dbc)
|
||||
|
||||
Reference in New Issue
Block a user