Skip to content

Commit 73bb943

Browse files
committed
Chore: Test 실패 해결
1 parent 60f93cb commit 73bb943

2 files changed

Lines changed: 20 additions & 0 deletions

File tree

build.gradle.kts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ dependencies {
3838
annotationProcessor("org.projectlombok:lombok")
3939
testImplementation("org.springframework.boot:spring-boot-starter-test")
4040
testRuntimeOnly("org.junit.platform:junit-platform-launcher")
41+
testRuntimeOnly("com.h2database:h2")
4142
}
4243

4344
tasks.withType<Test> {

src/test/resources/application.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
spring:
2+
datasource:
3+
url: jdbc:h2:mem:testdb;DB_CLOSE_DELAY=-1
4+
username: sa
5+
password:
6+
driver-class-name: org.h2.Driver
7+
8+
jpa:
9+
hibernate:
10+
ddl-auto: create-drop
11+
show_sql: true
12+
properties:
13+
hibernate:
14+
format_sql: true
15+
use_sql_comments: true
16+
17+
jwt:
18+
secret: "55ca298dcfc216e215622e3f48a251abaa4e8bb973074f065ab170e311acc15811d01a2407290c3ac143648196306d4a6f666a4ed364d3df633e08eb184bb0aea0f2edde4fd2d7fa68ea95ddbc421ff532ce47bde775975911042d665bc22d88a9fa26a03bb4d25530b8cdeb1247d87c9e3efcd721e368b0566b00a43308a729"
19+
expiration: 86400000

0 commit comments

Comments
 (0)