We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1f12fea commit 9bd83ccCopy full SHA for 9bd83cc
1 file changed
src/test/java/com/example/solidconnection/database/FlywayMigrationTest.java
@@ -0,0 +1,20 @@
1
+package com.example.solidconnection.database;
2
+
3
+import com.example.solidconnection.support.TestContainerSpringBootTest;
4
+import org.junit.jupiter.api.Test;
5
+import org.springframework.test.context.TestPropertySource;
6
7
+@TestContainerSpringBootTest
8
+@TestPropertySource(properties = {
9
+ "spring.flyway.enabled=true",
10
+ "spring.flyway.baseline-on-migrate=true",
11
+ "spring.jpa.hibernate.ddl-auto=validate"
12
+})
13
+class FlywayMigrationTest {
14
15
+ @Test
16
+ void flyway_스크립트가_정상적으로_수행되는지_확인한다() {
17
+ // 애플리케이션 컨텍스트가 로드되면서 Flyway 마이그레이션이 실행됩니다.
18
+ // 마이그레이션 스크립트에 문법 오류가 있으면 테스트가 실패합니다.
19
+ }
20
+}
0 commit comments