From ec24100f0ac93a3b81a1b15e0c147e089a19b4dc Mon Sep 17 00:00:00 2001 From: usbharu <64310155+usbharu@users.noreply.github.com> Date: Sun, 5 Nov 2023 00:34:01 +0900 Subject: [PATCH] =?UTF-8?q?test:=20inbox=E3=81=AE=E3=83=86=E3=82=B9?= =?UTF-8?q?=E3=83=88=E3=82=92=E8=BF=BD=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../interfaces/api/inbox/InboxControllerImplTest.kt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/test/kotlin/dev/usbharu/hideout/activitypub/interfaces/api/inbox/InboxControllerImplTest.kt b/src/test/kotlin/dev/usbharu/hideout/activitypub/interfaces/api/inbox/InboxControllerImplTest.kt index 75d76521..5bc960fa 100644 --- a/src/test/kotlin/dev/usbharu/hideout/activitypub/interfaces/api/inbox/InboxControllerImplTest.kt +++ b/src/test/kotlin/dev/usbharu/hideout/activitypub/interfaces/api/inbox/InboxControllerImplTest.kt @@ -19,6 +19,7 @@ import org.mockito.kotlin.eq import org.mockito.kotlin.whenever import org.springframework.http.MediaType import org.springframework.test.web.servlet.MockMvc +import org.springframework.test.web.servlet.get import org.springframework.test.web.servlet.post import org.springframework.test.web.servlet.setup.MockMvcBuilders @@ -101,4 +102,9 @@ class InboxControllerImplTest { } } + + @Test + fun `inbox GETリクエストには504を返す`() { + mockMvc.get("/inbox").andExpect { status { isMethodNotAllowed() } } + } }