Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Keep junit extensions in static fields #12166

Merged
merged 1 commit into from
Sep 4, 2024
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
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@

public class Aws2ClientNotRecordHttpErrorTest extends AbstractAws2ClientRecordHttpErrorTest {
@RegisterExtension
public final LibraryInstrumentationExtension testing = LibraryInstrumentationExtension.create();
public static final LibraryInstrumentationExtension testing =
LibraryInstrumentationExtension.create();

@Override
public ClientOverrideConfiguration.Builder createOverrideConfigurationBuilder() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class RmiTest {
private static Registry serverRegistry;
private static Registry clientRegistry;

@RegisterExtension final AutoCleanupExtension autoCleanup = AutoCleanupExtension.create();
@RegisterExtension static final AutoCleanupExtension autoCleanup = AutoCleanupExtension.create();

@BeforeAll
static void setUp() throws Exception {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@

public class EnduserAttributesCapturerTest {

@RegisterExtension InstrumentationExtension testing = LibraryInstrumentationExtension.create();
@RegisterExtension
static final InstrumentationExtension testing = LibraryInstrumentationExtension.create();

@Test
void nothingEnabled() {
Expand Down
Loading