Additional test for OrmClientDecorator

This commit is contained in:
Will Gittoes 2019-03-01 12:33:57 +11:00
parent e6d593eabe
commit bfc1042c3a
No known key found for this signature in database
GPG Key ID: 521026A02DB0BB42
1 changed files with 11 additions and 0 deletions

View File

@ -27,6 +27,17 @@ class OrmClientDecoratorTest extends DatabaseClientDecoratorTest {
"name set" | "not null" | "name" || true "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) { def newDecorator(name) {
return new OrmClientDecorator() { return new OrmClientDecorator() {