From f23e7b1d41c2d0b102424cfa76423cccaa9bf40d Mon Sep 17 00:00:00 2001 From: guyu Date: Tue, 30 Apr 2019 16:27:28 +0800 Subject: [PATCH] =?utf8?q?=E4=BF=AE=E6=94=B9=E5=95=86=E6=88=B7=E6=B5=8B?= =?utf8?q?=E8=AF=95=E7=B1=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- .../com/supwisdom/dlpay/controller/ShopControllerTest.kt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/test/kotlin/com/supwisdom/dlpay/controller/ShopControllerTest.kt b/src/test/kotlin/com/supwisdom/dlpay/controller/ShopControllerTest.kt index 41d72081..a9b27ae9 100644 --- a/src/test/kotlin/com/supwisdom/dlpay/controller/ShopControllerTest.kt +++ b/src/test/kotlin/com/supwisdom/dlpay/controller/ShopControllerTest.kt @@ -7,6 +7,7 @@ import com.supwisdom.dlpay.shop.bean.ShopParam import org.junit.Assert import org.junit.Test import org.springframework.http.MediaType +import org.springframework.test.context.ActiveProfiles import org.springframework.test.web.servlet.request.MockMvcRequestBuilders.get import org.springframework.test.web.servlet.request.MockMvcRequestBuilders.post @@ -16,6 +17,7 @@ import org.springframework.test.web.servlet.result.MockMvcResultMatchers.status /** * Created by shuwei on 2019/4/15. */ +@ActiveProfiles("devel-pg") class ShopControllerTest : MvcBaseTest() { class RetBean { var shopid: Int = 0 @@ -29,7 +31,7 @@ class ShopControllerTest : MvcBaseTest() { shopParam.uniqueId = ""//random req shopParam.shopname = "测试名称" val gson = Gson() - val ret = mvc.perform(post("/shop/open").content(gson.toJson(shopParam)) + val ret = mvc.perform(post("/api/shop/open").content(gson.toJson(shopParam)) .contentType(MediaType.APPLICATION_JSON)) .andExpect(status().isOk) .andDo(print()) -- 2.17.1