Skip to content

Commit

Permalink
Spring batch tests to java - basic (#12076)
Browse files Browse the repository at this point in the history
  • Loading branch information
zeitlinger authored Aug 29, 2024
1 parent 3bcbacc commit 6ae3e31
Show file tree
Hide file tree
Showing 45 changed files with 1,563 additions and 397 deletions.

This file was deleted.

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);
}
}
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);
}
}
Loading

0 comments on commit 6ae3e31

Please sign in to comment.