I have hundreds @DataJpaTest
-annotated classes within my spring boot library and it seems that every single class initializes/drops the schema.
How can I initialize (and eventually drops) the schema for all test classes?
// I have 1500 classes look like this
class SomeDataJpaTest {
}
class SomeOtherDataJpaTest {
}
...
I tried with the @Suite
and had no luck.
@SuiteDisplayName("DataJpaTest")
@IncludeClassNamePatterns({
"^.*DataJpaTest$"
})
@SelectPackages({
"com.....jpa.domain",
"com.....jpa.repository"
})
@Suite
class _DataJpaTestSuite {
}