Commit d299a767 by zhaoyang

产品管理开发和测试

parent fea9f2d1
...@@ -8,6 +8,7 @@ import com.abssqr.plat.common.facade.param.ast.AstPageQryParam; ...@@ -8,6 +8,7 @@ import com.abssqr.plat.common.facade.param.ast.AstPageQryParam;
import com.abssqr.plat.common.facade.result.BasePage; import com.abssqr.plat.common.facade.result.BasePage;
import com.abssqr.plat.common.facade.result.ast.AstLoanVO; import com.abssqr.plat.common.facade.result.ast.AstLoanVO;
import com.abssqr.plat.common.facade.service.ast.AstPoolService; import com.abssqr.plat.common.facade.service.ast.AstPoolService;
import com.abssqr.plat.common.facade.service.ast.AstService;
import com.abssqr.plat.test.BaseAutoTests; import com.abssqr.plat.test.BaseAutoTests;
import com.abssqr.test.annotation.XTest; import com.abssqr.test.annotation.XTest;
import com.abssqr.test.icase.ICase; import com.abssqr.test.icase.ICase;
...@@ -22,13 +23,13 @@ import org.testng.annotations.Test; ...@@ -22,13 +23,13 @@ import org.testng.annotations.Test;
public class AstListUnitTest extends BaseAutoTests { public class AstListUnitTest extends BaseAutoTests {
@Autowired @Autowired
private AstPoolService astPoolService; private AstService astService;
@XTest(relatePath = "unittest/astPool/astList") @XTest(relatePath = "unittest/astPool/astList")
@Test(dataProvider = "YamlDataProvider", description = "资产列表查询") @Test(dataProvider = "YamlDataProvider", description = "资产列表查询")
public void add(ICase iCase, AstPageQryParam astPageQryParam,String checkGet) { public void add(ICase iCase, AstPageQryParam astPageQryParam,String checkGet) {
try { try {
BasePage<AstLoanVO> astPoolLoanVOBasePage = astPoolService.astList(astPageQryParam); BasePage<AstLoanVO> astPoolLoanVOBasePage = astService.poolAstList(astPageQryParam);
VarChecker.checkArgument(checkGet.equals(new Gson().toJson(astPoolLoanVOBasePage)),"查询不符合预期"); VarChecker.checkArgument(checkGet.equals(new Gson().toJson(astPoolLoanVOBasePage)),"查询不符合预期");
} finally { } finally {
// 校验数据 // 校验数据
......
...@@ -17,6 +17,7 @@ import com.abssqr.test.annotation.XTest; ...@@ -17,6 +17,7 @@ import com.abssqr.test.annotation.XTest;
import com.abssqr.test.icase.ICase; import com.abssqr.test.icase.ICase;
import com.alibaba.fastjson.JSON; import com.alibaba.fastjson.JSON;
import com.general.system.common.model.Money;
import com.general.system.common.util.VarChecker; import com.general.system.common.util.VarChecker;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.testng.annotations.Test; import org.testng.annotations.Test;
...@@ -51,7 +52,7 @@ public class PackAddUnitTest extends BaseAutoTests { ...@@ -51,7 +52,7 @@ public class PackAddUnitTest extends BaseAutoTests {
AstPack astPack = astPackManager.get(packOprParam.getPackNo()); AstPack astPack = astPackManager.get(packOprParam.getPackNo());
int cnt = loanPackRelRepo.screenAst(astPack.getPackNo(), astPack.getAstPoolNo(), astPack.getAstType(), int cnt = loanPackRelRepo.screenAst(astPack.getPackNo(), astPack.getAstPoolNo(), astPack.getAstType(),
astPack.getScreenRuleList()); astPack.getScreenRuleList(),new Money(100));
System.out.println(cnt); System.out.println(cnt);
} finally { } finally {
......
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