修改商户测试类
diff --git a/src/test/kotlin/com/supwisdom/dlpay/controller/ShopControllerTest.kt b/src/test/kotlin/com/supwisdom/dlpay/controller/ShopControllerTest.kt
index 41d7208..a9b27ae 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 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 @@
/**
* Created by shuwei on 2019/4/15.
*/
+@ActiveProfiles("devel-pg")
class ShopControllerTest : MvcBaseTest() {
class RetBean {
var shopid: Int = 0
@@ -29,7 +31,7 @@
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())