-
Notifications
You must be signed in to change notification settings - Fork 858
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Spring batch tests to java - basic (#12076)
- Loading branch information
1 parent
3bcbacc
commit 6ae3e31
Showing
45 changed files
with
1,563 additions
and
397 deletions.
There are no files selected for viewing
346 changes: 0 additions & 346 deletions
346
instrumentation/spring/spring-batch-3.0/javaagent/src/test/groovy/SpringBatchTest.groovy
This file was deleted.
Oops, something went wrong.
23 changes: 23 additions & 0 deletions
23
...entelemetry/javaagent/instrumentation/spring/batch/v3_0/basic/JavaConfigBatchJobTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
/* | ||
* Copyright The OpenTelemetry Authors | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
package io.opentelemetry.javaagent.instrumentation.spring.batch.v3_0.basic; | ||
|
||
import io.opentelemetry.javaagent.instrumentation.spring.batch.v3_0.runner.ApplicationConfigRunner; | ||
import io.opentelemetry.javaagent.instrumentation.spring.batch.v3_0.runner.SpringBatchApplication; | ||
import org.junit.jupiter.api.extension.RegisterExtension; | ||
import org.springframework.context.annotation.AnnotationConfigApplicationContext; | ||
|
||
class JavaConfigBatchJobTest extends SpringBatchTest { | ||
|
||
@RegisterExtension | ||
static final ApplicationConfigRunner runner = | ||
new ApplicationConfigRunner( | ||
() -> new AnnotationConfigApplicationContext(SpringBatchApplication.class)); | ||
|
||
public JavaConfigBatchJobTest() { | ||
super(runner); | ||
} | ||
} |
22 changes: 22 additions & 0 deletions
22
...pentelemetry/javaagent/instrumentation/spring/batch/v3_0/basic/JsrConfigBatchJobTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
/* | ||
* Copyright The OpenTelemetry Authors | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
package io.opentelemetry.javaagent.instrumentation.spring.batch.v3_0.basic; | ||
|
||
import io.opentelemetry.javaagent.instrumentation.spring.batch.v3_0.runner.JavaxBatchConfigRunner; | ||
import org.junit.jupiter.api.extension.RegisterExtension; | ||
|
||
class JsrConfigBatchJobTest extends SpringBatchTest { | ||
@Override | ||
protected boolean hasPartitionManagerStep() { | ||
return false; | ||
} | ||
|
||
@RegisterExtension static final JavaxBatchConfigRunner runner = new JavaxBatchConfigRunner(); | ||
|
||
public JsrConfigBatchJobTest() { | ||
super(runner); | ||
} | ||
} |
Oops, something went wrong.