mirror of
https://github.com/usbharu/Hideout.git
synced 2026-09-29 08:21:11 +00:00
feat: リアクションのAPIを作成
This commit is contained in:
@@ -67,7 +67,7 @@ class PostsTest {
|
||||
configureSecurity(mock(), mock(), mock(), mock(), mock())
|
||||
routing {
|
||||
route("/api/internal/v1") {
|
||||
posts(postService)
|
||||
posts(postService, mock())
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -140,7 +140,7 @@ class PostsTest {
|
||||
configureSerialization()
|
||||
routing {
|
||||
route("/api/internal/v1") {
|
||||
posts(postService)
|
||||
posts(postService, mock())
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -172,7 +172,7 @@ class PostsTest {
|
||||
configureSecurity(mock(), mock(), mock(), mock(), mock())
|
||||
routing {
|
||||
route("/api/internal/v1") {
|
||||
posts(postService)
|
||||
posts(postService, mock())
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -215,7 +215,7 @@ class PostsTest {
|
||||
}
|
||||
routing {
|
||||
route("/api/internal/v1") {
|
||||
posts(postService)
|
||||
posts(postService, mock())
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -264,7 +264,7 @@ class PostsTest {
|
||||
}
|
||||
routing {
|
||||
route("/api/internal/v1") {
|
||||
posts(postService)
|
||||
posts(postService, mock())
|
||||
}
|
||||
}
|
||||
configureSerialization()
|
||||
@@ -326,7 +326,7 @@ class PostsTest {
|
||||
configureSecurity(mock(), mock(), mock(), mock(), mock())
|
||||
routing {
|
||||
route("/api/internal/v1") {
|
||||
posts(postService)
|
||||
posts(postService, mock())
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -378,7 +378,7 @@ class PostsTest {
|
||||
configureSecurity(mock(), mock(), mock(), mock(), mock())
|
||||
routing {
|
||||
route("/api/internal/v1") {
|
||||
posts(postService)
|
||||
posts(postService, mock())
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -430,7 +430,7 @@ class PostsTest {
|
||||
configureSecurity(mock(), mock(), mock(), mock(), mock())
|
||||
routing {
|
||||
route("/api/internal/v1") {
|
||||
posts(postService)
|
||||
posts(postService, mock())
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -482,7 +482,7 @@ class PostsTest {
|
||||
configureSecurity(mock(), mock(), mock(), mock(), mock())
|
||||
routing {
|
||||
route("/api/internal/v1") {
|
||||
posts(postService)
|
||||
posts(postService, mock())
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -514,7 +514,7 @@ class PostsTest {
|
||||
configureSecurity(mock(), mock(), mock(), mock(), mock())
|
||||
routing {
|
||||
route("/api/internal/v1") {
|
||||
posts(postService)
|
||||
posts(postService, mock())
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -546,7 +546,7 @@ class PostsTest {
|
||||
configureSecurity(mock(), mock(), mock(), mock(), mock())
|
||||
routing {
|
||||
route("/api/internal/v1") {
|
||||
posts(postService)
|
||||
posts(postService, mock())
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -578,7 +578,7 @@ class PostsTest {
|
||||
configureSecurity(mock(), mock(), mock(), mock(), mock())
|
||||
routing {
|
||||
route("/api/internal/v1") {
|
||||
posts(postService)
|
||||
posts(postService, mock())
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -610,7 +610,7 @@ class PostsTest {
|
||||
configureSecurity(mock(), mock(), mock(), mock(), mock())
|
||||
routing {
|
||||
route("/api/internal/v1") {
|
||||
posts(postService)
|
||||
posts(postService, mock())
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -25,7 +25,7 @@ import org.mockito.kotlin.*
|
||||
import utils.JsonObjectMapper
|
||||
import java.time.Instant
|
||||
import kotlin.test.assertEquals
|
||||
|
||||
@Suppress("LargeClass")
|
||||
class UsersTest {
|
||||
@Test
|
||||
fun `users にGETするとユーザー一覧を取得できる`() = testApplication {
|
||||
|
||||
Reference in New Issue
Block a user