mirror of
https://github.com/usbharu/Hideout.git
synced 2026-08-14 09:04:30 +00:00
test: inboxのテストを追加
This commit is contained in:
+6
@@ -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() } }
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user