Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
platform
/
platform-process-server
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 7d5c2932
authored
Sep 14, 2023
by
zhouhaibao
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
[+]测试
1 parent
abe3c645
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
0 deletions
platform-process/src/test/java/cn/com/glsx/cn/com/glsx/service/TestSopService.java
platform-process/src/test/java/cn/com/glsx/cn/com/glsx/service/TestSopService.java
View file @
7d5c293
package
cn
.
com
.
glsx
.
cn
.
com
.
glsx
.
service
;
import
cn.com.glsx.process.job.xxljob.XxlJobInfo
;
import
cn.com.glsx.process.job.xxljob.XxlJobUtil
;
import
lombok.extern.slf4j.Slf4j
;
import
org.junit.Test
;
import
org.junit.runner.RunWith
;
import
org.springframework.beans.factory.annotation.Autowired
;
...
...
@@ -16,6 +19,7 @@ import cn.hutool.json.JSONUtil;
*/
@RunWith
(
SpringJUnit4ClassRunner
.
class
)
@SpringBootTest
(
classes
=
Application
.
class
)
@Slf4j
public
class
TestSopService
{
@Autowired
...
...
@@ -28,4 +32,17 @@ public class TestSopService {
System
.
out
.
println
(
JSONUtil
.
toJsonStr
(
sop
));
}
@Test
public
void
testXXL
()
{
XxlJobInfo
jobInfo
=
new
XxlJobInfo
();
jobInfo
.
setExecutorParam
(
""
);
jobInfo
.
setJobDesc
(
"jobName2"
);
jobInfo
.
setAuthor
(
"admin"
);
jobInfo
.
setScheduleConf
(
"0 0/8 * * * ?"
);
jobInfo
.
setExecutorHandler
(
"demoJobHandler"
);
jobInfo
.
setBusKey
(
"28"
);
String
add
=
XxlJobUtil
.
add
(
jobInfo
);
log
.
info
(
"返回结果{}"
,
add
);
}
}
\ No newline at end of file
Write
Preview
Markdown
is supported
Attach a file
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 post a comment