|
|
@ -6,7 +6,6 @@ import space.kklochko.jpa_hospital_example.config.factories.LoadDataBaseConfigFr
|
|
|
|
import space.kklochko.jpa_hospital_example.config.models.DataBaseConfig
|
|
|
|
import space.kklochko.jpa_hospital_example.config.models.DataBaseConfig
|
|
|
|
import space.kklochko.jpa_hospital_example.db.factories.DataBaseConnection
|
|
|
|
import space.kklochko.jpa_hospital_example.db.factories.DataBaseConnection
|
|
|
|
import space.kklochko.jpa_hospital_example.db.factories.EntityManagerConnection
|
|
|
|
import space.kklochko.jpa_hospital_example.db.factories.EntityManagerConnection
|
|
|
|
import space.kklochko.jpa_hospital_example.db.repositories.blocks.TransactionalClearTable
|
|
|
|
|
|
|
|
import space.kklochko.jpa_hospital_example.models.Indicator
|
|
|
|
import space.kklochko.jpa_hospital_example.models.Indicator
|
|
|
|
import spock.lang.Shared
|
|
|
|
import spock.lang.Shared
|
|
|
|
import spock.lang.Specification
|
|
|
|
import spock.lang.Specification
|
|
|
@ -44,8 +43,7 @@ class IndicatorRepositorySpec extends Specification {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
def cleanupSpec() {
|
|
|
|
def cleanupSpec() {
|
|
|
|
//sql.execute("delete from indicators")
|
|
|
|
sql.execute("delete from indicators")
|
|
|
|
(new TransactionalClearTable()).run(manager, "Indicator")
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
def "Read one indicator"() {
|
|
|
|
def "Read one indicator"() {
|
|
|
|