From 503b6c1b1545e7a66f3eda3aef08dc88619ae9ab Mon Sep 17 00:00:00 2001 From: ekzm8523 Date: Sun, 14 Jan 2024 16:18:38 +0900 Subject: [PATCH] refactor: lint --- .../problem/AdminLongProblemControllerIntegrationTest.kt | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/test/kotlin/io/csbroker/apiserver/controller/v1/admin/problem/AdminLongProblemControllerIntegrationTest.kt b/src/test/kotlin/io/csbroker/apiserver/controller/v1/admin/problem/AdminLongProblemControllerIntegrationTest.kt index af94c377..2bb3c577 100644 --- a/src/test/kotlin/io/csbroker/apiserver/controller/v1/admin/problem/AdminLongProblemControllerIntegrationTest.kt +++ b/src/test/kotlin/io/csbroker/apiserver/controller/v1/admin/problem/AdminLongProblemControllerIntegrationTest.kt @@ -7,7 +7,6 @@ import io.csbroker.apiserver.model.StandardAnswer import io.csbroker.apiserver.model.Tag import io.kotest.matchers.shouldBe import org.junit.jupiter.api.Test - import org.springframework.http.HttpMethod import org.springframework.test.web.servlet.result.MockMvcResultMatchers.status @@ -24,7 +23,7 @@ class AdminLongProblemControllerIntegrationTest : IntegrationTest() { ), ) save(StandardAnswer(content = "삭제될 모범 답안", longProblem = problem)) - save(Tag(name="tag1")) + save(Tag(name = "tag1")) val updateRequestDto = LongProblemUpsertRequestDto( title = "Test problem", description = "This is a test problem", @@ -44,9 +43,11 @@ class AdminLongProblemControllerIntegrationTest : IntegrationTest() { // then response.andExpect(status().isOk) .andExpect { - val standardAnswers = findAll("SELECT s FROM StandardAnswer s where s.longProblem.id = :id", mapOf("id" to problem.id)) + val standardAnswers = findAll( + "SELECT s FROM StandardAnswer s where s.longProblem.id = :id", + mapOf("id" to problem.id), + ) standardAnswers.map { it.content }.toSet() shouldBe updateRequestDto.standardAnswers.toSet() } - } }