Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/config/latest-dep-versions.json
Original file line number Diff line number Diff line change
Expand Up @@ -122,10 +122,10 @@
"com.typesafe.play:play_2.13#+": "2.9.11",
"com.vaadin:flow-server#+": "25.1.10",
"com.vaadin:vaadin-spring-boot-starter#14.11.+": "14.11.14",
"com.xuxueli:xxl-job-core#+": "3.4.0",
"com.xuxueli:xxl-job-core#+": "3.4.1",
"com.xuxueli:xxl-job-core#2.2.+": "2.2.0",
"com.xuxueli:xxl-job-core#3.2.+": "3.2.0",
"com.zaxxer:HikariCP#+": "7.0.2",
"com.zaxxer:HikariCP#+": "7.1.0",
"commons-httpclient:commons-httpclient#+": "3.1",
"commons-httpclient:commons-httpclient#3.+": "3.1",
"dev.failsafe:failsafe#+": "3.3.2",
Expand Down Expand Up @@ -353,7 +353,7 @@
"org.apache.tomee:openejb-cxf-rs#+": "10.1.5",
"org.apache.wicket:wicket#+": "10.9.1",
"org.apache.wicket:wicket#9.+": "9.23.0",
"org.asynchttpclient:async-http-client#+": "3.0.10",
"org.asynchttpclient:async-http-client#+": "3.0.11",
"org.eclipse.jetty.ee10:jetty-ee10-servlet#+": "12.1.10",
"org.eclipse.jetty:jetty-client#+": "12.1.10",
"org.eclipse.jetty:jetty-client#9.+": "9.4.58.v20250814",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
import static io.opentelemetry.instrumentation.xxljob.common.v1_9_2.XxlJobTestingConstants.GLUE_JOB_GROOVY_SOURCE;
import static io.opentelemetry.instrumentation.xxljob.common.v1_9_2.XxlJobTestingConstants.GLUE_JOB_SHELL_SCRIPT;

import com.xxl.job.core.executor.XxlJobExecutor;
import com.xxl.job.core.glue.GlueFactory;
import com.xxl.job.core.glue.GlueTypeEnum;
import com.xxl.job.core.handler.IJobHandler;
Expand All @@ -18,6 +19,8 @@
import com.xxl.job.core.openapi.model.TriggerRequest;
import com.xxl.job.core.thread.JobThread;
import io.opentelemetry.instrumentation.xxljob.common.v1_9_2.AbstractXxlJobTest;
import org.junit.jupiter.api.AfterAll;
import org.junit.jupiter.api.BeforeAll;

class XxlJobTest extends AbstractXxlJobTest {

Expand All @@ -34,6 +37,7 @@ class XxlJobTest extends AbstractXxlJobTest {
private static final ScriptJobHandler scriptJobHandler =
new ScriptJobHandler(
2, DEFAULT_GLUE_UPDATE_TIME, GLUE_JOB_SHELL_SCRIPT, GlueTypeEnum.GLUE_SHELL);
private static final XxlJobExecutor xxlJobExecutor = new XxlJobExecutor();

private static IJobHandler createGroovyHandler() {
try {
Expand All @@ -43,6 +47,16 @@ private static IJobHandler createGroovyHandler() {
}
}

@BeforeAll
static void start() throws Exception {
xxlJobExecutor.start();
}

@AfterAll
static void stop() {
xxlJobExecutor.destroy();
}

@Override
protected String getPackageName() {
return "io.opentelemetry.javaagent.instrumentation.xxljob.v3_3_0";
Expand Down
Loading