qiaowei | e5e913f | 2019-04-17 10:23:47 +0800 | [diff] [blame] | 1 | package com.supwisdom.dlpay.controller |
| 2 | |
| 3 | import com.supwisdom.dlpay.MvcBaseTest |
| 4 | import org.junit.Test |
| 5 | import org.springframework.http.MediaType |
| 6 | import org.springframework.test.web.servlet.request.MockMvcRequestBuilders |
| 7 | import org.springframework.test.web.servlet.result.MockMvcResultHandlers |
| 8 | import org.springframework.test.web.servlet.result.MockMvcResultMatchers |
| 9 | |
| 10 | /** |
| 11 | * Created by shuwei on 2019/4/16. |
| 12 | */ |
| 13 | class ApiControllerTest : MvcBaseTest() { |
| 14 | @Test |
| 15 | fun testYktPay() { |
| 16 | //TODO prepare data |
| 17 | val stuempno="10000097" |
| 18 | val ret = mvc.perform(MockMvcRequestBuilders.post("/ykt/payinit").content("") |
| 19 | .contentType(MediaType.APPLICATION_JSON)) |
| 20 | .andExpect(MockMvcResultMatchers.status().isOk) |
| 21 | .andDo(MockMvcResultHandlers.print()) |
| 22 | .andReturn() |
| 23 | } |
| 24 | } |