Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
JSH ERP
Commits
59156e5f
Commit
59156e5f
authored
Sep 04, 2019
by
季圣华
Browse files
增加test测试类
parent
9e5f7f1e
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/test/java/com/jsh/erp/DepotTest.java
0 → 100644
View file @
59156e5f
package
com.jsh.erp
;
import
com.alibaba.fastjson.JSON
;
import
com.jsh.erp.datasource.entities.Depot
;
import
com.jsh.erp.service.depot.DepotService
;
import
lombok.extern.slf4j.Slf4j
;
import
org.junit.Test
;
import
org.junit.runner.RunWith
;
import
org.springframework.boot.test.context.SpringBootTest
;
import
org.springframework.test.context.junit4.SpringRunner
;
import
javax.annotation.Resource
;
import
java.util.List
;
@Slf4j
@RunWith
(
SpringRunner
.
class
)
@SpringBootTest
public
class
DepotTest
{
@Resource
private
DepotService
depotService
;
@Test
public
void
getDepot
()
throws
Exception
{
Depot
result
=
depotService
.
getDepot
(
1
l
);
log
.
info
(
"depot result:"
+
JSON
.
toJSONString
(
result
));
}
@Test
public
void
getAllList
()
throws
Exception
{
List
<
Depot
>
depotList
=
depotService
.
getAllList
();
log
.
info
(
"depot result:"
+
JSON
.
toJSONString
(
depotList
));
}
}
Write
Preview
Supports
Markdown
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