Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in / Register
Toggle navigation
Y
yzg-util
Project
Project
Details
Activity
Releases
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
YZG
yzg-util
Commits
6590f3cf
Commit
6590f3cf
authored
Feb 27, 2023
by
yanzg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
导出Excel边框
parent
60b977c0
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
0 deletions
+26
-0
HttpHelperTest.java
yzg-util-base/src/test/java/helper/HttpHelperTest.java
+26
-0
No files found.
yzg-util-base/src/test/java/helper/HttpHelperTest.java
View file @
6590f3cf
...
@@ -3,9 +3,11 @@ package helper;
...
@@ -3,9 +3,11 @@ package helper;
import
com.yanzuoguang.util.helper.BaiduHelper
;
import
com.yanzuoguang.util.helper.BaiduHelper
;
import
com.yanzuoguang.util.helper.HttpHelper
;
import
com.yanzuoguang.util.helper.HttpHelper
;
import
com.yanzuoguang.util.helper.JsonHelper
;
import
com.yanzuoguang.util.helper.JsonHelper
;
import
com.yanzuoguang.util.helper.StringHelper
;
import
helper.vo.BaiduDate
;
import
helper.vo.BaiduDate
;
import
org.junit.Test
;
import
org.junit.Test
;
import
java.util.ArrayList
;
import
java.util.Date
;
import
java.util.Date
;
import
java.util.HashMap
;
import
java.util.HashMap
;
import
java.util.Map
;
import
java.util.Map
;
...
@@ -62,4 +64,28 @@ public class HttpHelperTest {
...
@@ -62,4 +64,28 @@ public class HttpHelperTest {
String
result
=
HttpHelper
.
postApplicationJSON
(
url
,
post
);
String
result
=
HttpHelper
.
postApplicationJSON
(
url
,
post
);
System
.
out
.
println
(
result
);
System
.
out
.
println
(
result
);
}
}
@Test
public
void
testReq
()
throws
Exception
{
String
result
=
HttpHelper
.
postRequest
(
"http://127.0.0.1:6903/test/wait/11500"
,
new
ArrayList
<>());
System
.
out
.
println
(
result
);
}
@Test
public
void
testReqWait
()
throws
Exception
{
String
result
=
HttpHelper
.
postRequest
(
"http://127.0.0.1:6903/test/wait/20000"
,
new
ArrayList
<>());
System
.
out
.
println
(
result
);
}
@Test
public
void
testReq1
()
throws
Exception
{
String
result
=
HttpHelper
.
post
(
"http://127.0.0.1:6903/test/wait/11500"
,
StringHelper
.
EMPTY
);
System
.
out
.
println
(
result
);
}
@Test
public
void
testReqWait1
()
throws
Exception
{
String
result
=
HttpHelper
.
post
(
"http://127.0.0.1:6903/test/wait/20000"
,
StringHelper
.
EMPTY
);
System
.
out
.
println
(
result
);
}
}
}
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