Additional test for OrmClientDecorator
This commit is contained in:
parent
e6d593eabe
commit
bfc1042c3a
|
@ -27,6 +27,17 @@ class OrmClientDecoratorTest extends DatabaseClientDecoratorTest {
|
|||
"name set" | "not null" | "name" || true
|
||||
}
|
||||
|
||||
def "test onOperation null span"() {
|
||||
setup:
|
||||
decorator = newDecorator({ e -> null })
|
||||
|
||||
when:
|
||||
decorator.onOperation(null, null)
|
||||
|
||||
then:
|
||||
thrown(AssertionError)
|
||||
}
|
||||
|
||||
|
||||
def newDecorator(name) {
|
||||
return new OrmClientDecorator() {
|
||||
|
|
Loading…
Reference in New Issue