Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
bb
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abs_pom
bb
Commits
d299a767
Commit
d299a767
authored
Apr 29, 2020
by
zhaoyang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
产品管理开发和测试
parent
fea9f2d1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
app/test/src/test/java/com/abssqr/plat/test/unittest/astPool/AstListUnitTest.java
+3
-2
app/test/src/test/java/com/abssqr/plat/test/unittest/pack/PackAddUnitTest.java
+2
-1
No files found.
app/test/src/test/java/com/abssqr/plat/test/unittest/astPool/AstListUnitTest.java
View file @
d299a767
...
@@ -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
Ast
PoolService
astPool
Service
;
private
Ast
Service
ast
Service
;
@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
=
ast
PoolService
.
a
stList
(
astPageQryParam
);
BasePage
<
AstLoanVO
>
astPoolLoanVOBasePage
=
ast
Service
.
poolA
stList
(
astPageQryParam
);
VarChecker
.
checkArgument
(
checkGet
.
equals
(
new
Gson
().
toJson
(
astPoolLoanVOBasePage
)),
"查询不符合预期"
);
VarChecker
.
checkArgument
(
checkGet
.
equals
(
new
Gson
().
toJson
(
astPoolLoanVOBasePage
)),
"查询不符合预期"
);
}
finally
{
}
finally
{
// 校验数据
// 校验数据
...
...
app/test/src/test/java/com/abssqr/plat/test/unittest/pack/PackAddUnitTest.java
View file @
d299a767
...
@@ -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
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment