Skip to content

Commit

Permalink
fix: api test dependency, fixture 설정 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
wjdtkdgns committed Jul 8, 2024
1 parent 5339dcc commit 64cf1c6
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
4 changes: 4 additions & 0 deletions api/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@ dependencies {
/** jwt */
implementation("com.auth0:java-jwt:${DependencyVersion.JWT}")
implementation("org.bouncycastle:bcpkix-jdk15on:${DependencyVersion.BOUNCY_CASTLE}")

/** fixture monkey */
testImplementation("com.navercorp.fixturemonkey:fixture-monkey-kotlin:${DependencyVersion.FIXTURE_MONKEY}")
testImplementation("com.navercorp.fixturemonkey:fixture-monkey-starter-kotlin:${DependencyVersion.FIXTURE_MONKEY}")
}

tasks.getByName("bootJar") {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,10 @@ class BoardServiceTest : DescribeSpec({
describe("scheduler") {
context("run 될 경우") {
it("board data를 리프레시 해야한다.") {
runTest {
val boards = boardService.getAll()
logger.info { boards }
val boards = boardService.getAll()
logger.info { boards }

boards.size shouldBeEqual 5
}
boards.size shouldBeEqual 5
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ class DomainFixtureUtil {
* board
*/
private val boardBuilder = monkey.giveMeBuilder(Board::class.java)
.set("id", -1)
.setNotNullExp(Board::name)
.setNotNullExp(Board::isActive)
.setNotNullExp(Board::seq)
Expand Down

0 comments on commit 64cf1c6

Please sign in to comment.