generated from pricelees/issue-pr-template
feat: 테스트에서 Database 초기화를 하지 않도록 하는 어노테이션
This commit is contained in:
parent
8bf73217e4
commit
72d3c7093b
11
src/test/java/roomescape/common/TestAnnotations.kt
Normal file
11
src/test/java/roomescape/common/TestAnnotations.kt
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
package roomescape.common
|
||||||
|
|
||||||
|
import org.springframework.test.context.TestPropertySource
|
||||||
|
|
||||||
|
@Target(AnnotationTarget.CLASS)
|
||||||
|
@Retention(AnnotationRetention.RUNTIME)
|
||||||
|
@TestPropertySource(properties = [
|
||||||
|
"spring.jpa.hibernate.ddl-auto=none",
|
||||||
|
"spring.sql.init.mode=never"
|
||||||
|
])
|
||||||
|
annotation class NoSqlInitialize
|
||||||
Loading…
x
Reference in New Issue
Block a user