Skip to content
This repository was archived by the owner on Mar 19, 2025. It is now read-only.

Commit a17c489

Browse files
authored
test: sandboxの修正 (#280)
__背景__ - sandboxテストでKomapperのUser一覧取得のテストが落ちていた __原因__ - そもそもテーブルにデータが入っている保証がなかった - 入ってたとしてもInsertテストの結果でそれはBeforeEachに走るDbConnection.resetSequence()によって10001からスタートだった __対応__ - DBRiderを利用して、必ず1,2,3のuseridが入るようにする
1 parent 39b1998 commit a17c489

File tree

1 file changed

+6
-0
lines changed
  • src/test/kotlin/com/example/realworldkotlinspringbootjdbc/sandbox/komapper

1 file changed

+6
-0
lines changed

src/test/kotlin/com/example/realworldkotlinspringbootjdbc/sandbox/komapper/UserTest.kt

+6
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,12 @@ class UserTest {
4545
}
4646

4747
@Test
48+
@DBRider
49+
@DataSet(
50+
value = [
51+
"datasets/yml/given/users.yml",
52+
]
53+
)
4854
fun `User一覧を取得する`() {
4955
/**
5056
* given:

0 commit comments

Comments
 (0)