Skip to content

Commit bfc1042

Browse files
Additional test for OrmClientDecorator
1 parent e6d593e commit bfc1042

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

dd-java-agent/agent-tooling/src/test/groovy/datadog/trace/agent/decorator/OrmClientDecoratorTest.groovy

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,17 @@ class OrmClientDecoratorTest extends DatabaseClientDecoratorTest {
2727
"name set" | "not null" | "name" || true
2828
}
2929

30+
def "test onOperation null span"() {
31+
setup:
32+
decorator = newDecorator({ e -> null })
33+
34+
when:
35+
decorator.onOperation(null, null)
36+
37+
then:
38+
thrown(AssertionError)
39+
}
40+
3041

3142
def newDecorator(name) {
3243
return new OrmClientDecorator() {

0 commit comments

Comments
 (0)