记得上下班打卡 | git大法好,push需谨慎

Commit 111223e2 authored by wangyifan's avatar wangyifan

商城商品单元测试

parent 9a0873de
...@@ -3,7 +3,9 @@ package com.liquidnet.service.goblin.test; ...@@ -3,7 +3,9 @@ package com.liquidnet.service.goblin.test;
import com.liquidnet.service.goblin.param.shouqianba.request.CommonRequest; import com.liquidnet.service.goblin.param.shouqianba.request.CommonRequest;
import com.liquidnet.service.goblin.param.shouqianba.request.MallListQueryRequest; import com.liquidnet.service.goblin.param.shouqianba.request.MallListQueryRequest;
import com.liquidnet.service.goblin.param.shouqianba.request.MallProductsQueryRequest;
import com.liquidnet.service.goblin.param.shouqianba.response.data.MallListQueryData; import com.liquidnet.service.goblin.param.shouqianba.response.data.MallListQueryData;
import com.liquidnet.service.goblin.param.shouqianba.response.data.MallProductsQueryData;
import com.liquidnet.service.goblin.service.IGoblinShouQianBaService; import com.liquidnet.service.goblin.service.IGoblinShouQianBaService;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import org.junit.Assert; import org.junit.Assert;
...@@ -43,4 +45,25 @@ public class GoblinShouQianBaServiceImplTest { ...@@ -43,4 +45,25 @@ public class GoblinShouQianBaServiceImplTest {
Assert.assertNotNull(mallListQueryData); Assert.assertNotNull(mallListQueryData);
} }
@Test
public void queryMallProducts(){
CommonRequest.Seller seller = new CommonRequest.Seller();
seller.setMerchantId("1c904b2d-f056-4afa-a819-0328a4774320");
seller.setMerchantUserId("6ce169d1-1289-4e98-b4a3-ea8b6145046f");
seller.setRole("super_admin");
CommonRequest.Mall mall = new CommonRequest.Mall();
mall.setMallSn("2025082811504809748");
mall.setSignature("9GB99V5iqvg-J_mhjYzs");
MallProductsQueryRequest mallProductsQueryRequest = new MallProductsQueryRequest();
mallProductsQueryRequest.setAppid("2025082700005615");
mallProductsQueryRequest.setSeller(seller);
mallProductsQueryRequest.setMallID(mall);
List<MallProductsQueryData> queryData = goblinShouQianBaService.queryMallProducts(mallProductsQueryRequest);
Assert.assertNotNull(queryData);
}
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment