From a0f4aa728e6a6f9083da6de8e55ce9e1f3883d09 Mon Sep 17 00:00:00 2001 From: KKlochko Date: Mon, 6 Nov 2023 21:58:18 +0200 Subject: [PATCH] Fix the test. --- .../db/repositories/IndicatorRepositorySpec.groovy | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/test/groovy/space/kklochko/jpa_hospital_example/db/repositories/IndicatorRepositorySpec.groovy b/src/test/groovy/space/kklochko/jpa_hospital_example/db/repositories/IndicatorRepositorySpec.groovy index bd37aa5..e16a676 100644 --- a/src/test/groovy/space/kklochko/jpa_hospital_example/db/repositories/IndicatorRepositorySpec.groovy +++ b/src/test/groovy/space/kklochko/jpa_hospital_example/db/repositories/IndicatorRepositorySpec.groovy @@ -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.db.factories.DataBaseConnection 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 spock.lang.Shared import spock.lang.Specification @@ -44,8 +43,7 @@ class IndicatorRepositorySpec extends Specification { } def cleanupSpec() { - //sql.execute("delete from indicators") - (new TransactionalClearTable()).run(manager, "Indicator") + sql.execute("delete from indicators") } def "Read one indicator"() {