diff --git a/core/src/test/java/com/github/dbunit/rules/DBUnitClassLevelAnnotationIt.java b/core/src/test/java/com/github/dbunit/rules/DBUnitClassLevelAnnotationIt.java index 9cfed0c..aaf0aec 100644 --- a/core/src/test/java/com/github/dbunit/rules/DBUnitClassLevelAnnotationIt.java +++ b/core/src/test/java/com/github/dbunit/rules/DBUnitClassLevelAnnotationIt.java @@ -1,6 +1,7 @@ package com.github.dbunit.rules; import com.github.dbunit.rules.api.dataset.DataSet; +import com.github.dbunit.rules.api.dbunit.DBUnitConfig; import com.github.dbunit.rules.model.Follower; import com.github.dbunit.rules.model.User; import com.github.dbunit.rules.util.EntityManagerProvider; @@ -17,6 +18,7 @@ */ @RunWith(JUnit4.class) @DataSet(value = "datasets/yml/users.yml") +@DBUnitConfig(cacheConnection = true) public class DBUnitClassLevelAnnotationIt { @Rule diff --git a/core/src/test/java/com/github/dbunit/rules/DateReplacementsIt.java b/core/src/test/java/com/github/dbunit/rules/DateReplacementsIt.java index 7070ef4..9c29cf7 100644 --- a/core/src/test/java/com/github/dbunit/rules/DateReplacementsIt.java +++ b/core/src/test/java/com/github/dbunit/rules/DateReplacementsIt.java @@ -1,6 +1,7 @@ package com.github.dbunit.rules; import com.github.dbunit.rules.api.dataset.DataSet; +import com.github.dbunit.rules.api.dbunit.DBUnitConfig; import com.github.dbunit.rules.model.Tweet; import com.github.dbunit.rules.util.EntityManagerProvider; import org.junit.Before; @@ -14,6 +15,7 @@ /** * Created by pestano on 15/02/16. */ +@DBUnitConfig(cacheConnection = true) public class DateReplacementsIt { Calendar now; diff --git a/core/src/test/java/com/github/dbunit/rules/EmptyDataSetIt.java b/core/src/test/java/com/github/dbunit/rules/EmptyDataSetIt.java index c6a06ee..52cc510 100644 --- a/core/src/test/java/com/github/dbunit/rules/EmptyDataSetIt.java +++ b/core/src/test/java/com/github/dbunit/rules/EmptyDataSetIt.java @@ -4,6 +4,7 @@ import static com.github.dbunit.rules.util.EntityManagerProvider.tx; import static org.assertj.core.api.Assertions.assertThat; +import com.github.dbunit.rules.api.dbunit.DBUnitConfig; import org.junit.BeforeClass; import org.junit.Rule; import org.junit.Test; @@ -21,6 +22,7 @@ * Created by rmpestano on 8/21/16. */ @RunWith(JUnit4.class) +@DBUnitConfig(cacheConnection = true) public class EmptyDataSetIt { EntityManagerProvider emProvider = EntityManagerProvider.instance("rules-it"); diff --git a/core/src/test/java/com/github/dbunit/rules/ExpectedDataSetIt.java b/core/src/test/java/com/github/dbunit/rules/ExpectedDataSetIt.java index 03dcbc0..0696e54 100644 --- a/core/src/test/java/com/github/dbunit/rules/ExpectedDataSetIt.java +++ b/core/src/test/java/com/github/dbunit/rules/ExpectedDataSetIt.java @@ -2,6 +2,7 @@ import com.github.dbunit.rules.api.dataset.DataSet; import com.github.dbunit.rules.api.dataset.ExpectedDataSet; +import com.github.dbunit.rules.api.dbunit.DBUnitConfig; import com.github.dbunit.rules.model.User; import com.github.dbunit.rules.util.EntityManagerProvider; import org.junit.Before; @@ -21,6 +22,7 @@ */ // tag::expectedDeclaration[] @RunWith(JUnit4.class) +@DBUnitConfig(cacheConnection = true) public class ExpectedDataSetIt { @Rule diff --git a/core/src/test/java/com/github/dbunit/rules/ScriptsIt.java b/core/src/test/java/com/github/dbunit/rules/ScriptsIt.java index 4ddd014..2699b07 100644 --- a/core/src/test/java/com/github/dbunit/rules/ScriptsIt.java +++ b/core/src/test/java/com/github/dbunit/rules/ScriptsIt.java @@ -2,6 +2,7 @@ import com.github.dbunit.rules.api.dataset.DataSet; import com.github.dbunit.rules.api.dataset.SeedStrategy; +import com.github.dbunit.rules.api.dbunit.DBUnitConfig; import com.github.dbunit.rules.model.User; import com.github.dbunit.rules.util.EntityManagerProvider; import org.junit.AfterClass; @@ -22,6 +23,7 @@ * Created by pestano on 27/02/16. */ @RunWith(JUnit4.class) +@DBUnitConfig(cacheConnection = true) public class ScriptsIt { @Rule diff --git a/core/src/test/java/com/github/dbunit/rules/TransactionIt.java b/core/src/test/java/com/github/dbunit/rules/TransactionIt.java index f36c5ff..0d3a8d5 100644 --- a/core/src/test/java/com/github/dbunit/rules/TransactionIt.java +++ b/core/src/test/java/com/github/dbunit/rules/TransactionIt.java @@ -2,6 +2,7 @@ import com.github.dbunit.rules.api.dataset.DataSet; import com.github.dbunit.rules.api.dataset.ExpectedDataSet; +import com.github.dbunit.rules.api.dbunit.DBUnitConfig; import com.github.dbunit.rules.model.User; import com.github.dbunit.rules.util.EntityManagerProvider; import org.junit.Rule; @@ -17,6 +18,7 @@ */ @RunWith(JUnit4.class) +@DBUnitConfig(cacheConnection = true) public class TransactionIt { @Rule