Skip to content
This repository was archived by the owner on Jan 20, 2023. It is now read-only.

Commit bd319aa

Browse files
committed
一応close処理を追加
1 parent 7c8d213 commit bd319aa

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/test/kotlin/com/mapk/krowmapper/UseDBMappingTest.kt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ package com.mapk.krowmapper
33
import com.google.common.base.CaseFormat
44
import javax.sql.DataSource
55
import org.h2.jdbcx.JdbcDataSource
6+
import org.junit.jupiter.api.AfterAll
67
import org.junit.jupiter.api.Assertions.assertEquals
78
import org.junit.jupiter.api.BeforeAll
89
import org.junit.jupiter.api.Test
@@ -85,4 +86,9 @@ class UseDBMappingTest {
8586
result
8687
)
8788
}
89+
90+
@AfterAll
91+
fun afterAll() {
92+
jdbcTemplate.dataSource!!.connection.close()
93+
}
8894
}

0 commit comments

Comments
 (0)