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
Litemall
Commits
a13a230e
"src/vscode:/vscode.git/clone" did not exist on "5b7e4fa2280ff88cbe31ec7780309848877ac3ed"
Commit
a13a230e
authored
Oct 30, 2018
by
Junling Bu
Browse files
fix[litemall-core]: 物流测试用例不正确
parent
3debeb03
Changes
2
Hide whitespace changes
Inline
Side-by-side
litemall-core/src/main/java/org/linlinjava/litemall/core/express/dao/ExpressInfo.java
View file @
a13a230e
...
...
@@ -85,4 +85,17 @@ public class ExpressInfo {
public
void
setShipperName
(
String
shipperName
)
{
ShipperName
=
shipperName
;
}
@Override
public
String
toString
()
{
return
"ExpressInfo{"
+
"LogisticCode='"
+
LogisticCode
+
'\''
+
", ShipperCode='"
+
ShipperCode
+
'\''
+
", Traces="
+
Traces
+
", State='"
+
State
+
'\''
+
", EBusinessID='"
+
EBusinessID
+
'\''
+
", Success="
+
Success
+
", ShipperName='"
+
ShipperName
+
'\''
+
'}'
;
}
}
\ No newline at end of file
litemall-core/src/test/java/org/linlinjava/litemall/core/ExpressTest.java
View file @
a13a230e
...
...
@@ -4,6 +4,7 @@ import org.junit.Test;
import
org.junit.runner.RunWith
;
import
org.linlinjava.litemall.core.express.ExpressService
;
import
org.linlinjava.litemall.core.express.dao.ExpressInfo
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.boot.test.context.SpringBootTest
;
import
org.springframework.test.context.junit4.SpringJUnit4ClassRunner
;
import
org.springframework.test.context.web.WebAppConfiguration
;
...
...
@@ -12,10 +13,11 @@ import org.springframework.test.context.web.WebAppConfiguration;
@RunWith
(
SpringJUnit4ClassRunner
.
class
)
@SpringBootTest
(
classes
=
Application
.
class
)
public
class
ExpressTest
{
@Autowired
private
ExpressService
expressService
;
@Test
public
void
test
()
{
ExpressService
expressService
=
new
ExpressService
();
ExpressInfo
ei
=
null
;
try
{
ei
=
expressService
.
getExpressInfo
(
"YTO"
,
"800669400640887922"
);
...
...
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