I changed JUnit4 to JUnit5.
Also previously, testing with MSSQL, but we changed it to H2DB.
The problem occurred at this time.
My legacy project has about 400 tables.
If you conduct a persistence test using @DataJpaTest, occurred more than 400 CREATE DDLs.
I looked for a solution to solve this problem, but the best-looking solution I found was to pre-write about 400 Create DDLs in schema.sql.
What I want.
I want to create a MEMBER table only when there is a code like the following, and test only the MEMBER table.
public interface MemberRepository extends JpaRepository<Member, Long>{
}
Do you have any useful features or solutions for JUnit5?