Skip to content

Commit

Permalink
Use class as test parameter instead of object (#9659)
Browse files Browse the repository at this point in the history
  • Loading branch information
laurit committed Oct 12, 2023
1 parent 57e6be4 commit 9dd2203
Showing 1 changed file with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ class AgentInstrumentationSpecificationTest extends AgentInstrumentationSpecific
def "excluded classes are not instrumented"() {
when:
runWithSpan("parent") {
subject.run()
subject.getConstructor().newInstance().run()
}

then:
Expand All @@ -83,13 +83,13 @@ class AgentInstrumentationSpecificationTest extends AgentInstrumentationSpecific
}

where:
subject | spanName
new config.SomeClass() | "SomeClass.run"
new config.SomeClass.NestedClass() | "NestedClass.run"
new config.exclude.SomeClass() | null
new config.exclude.SomeClass.NestedClass() | null
new config.exclude.packagename.SomeClass() | null
new config.exclude.packagename.SomeClass.NestedClass() | null
subject | spanName
config.SomeClass | "SomeClass.run"
config.SomeClass.NestedClass | "NestedClass.run"
config.exclude.SomeClass | null
config.exclude.SomeClass.NestedClass | null
config.exclude.packagename.SomeClass | null
config.exclude.packagename.SomeClass.NestedClass | null
}

def "test unblocked by completed span"() {
Expand Down

0 comments on commit 9dd2203

Please sign in to comment.