test: inboxのテストを追加

This commit is contained in:
usbharu 2023-11-05 00:34:01 +09:00
parent 3ed6b20dc5
commit ec24100f0a
1 changed files with 6 additions and 0 deletions

View File

@ -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() } }
}
}