diff --git a/liquibase-core/src/test/groovy/liquibase/change/custom/CustomChangeWrapperTest.groovy b/liquibase-core/src/test/groovy/liquibase/change/custom/CustomChangeWrapperTest.groovy index 84279998396..98402a624b0 100644 --- a/liquibase-core/src/test/groovy/liquibase/change/custom/CustomChangeWrapperTest.groovy +++ b/liquibase-core/src/test/groovy/liquibase/change/custom/CustomChangeWrapperTest.groovy @@ -297,6 +297,16 @@ class CustomChangeWrapperTest extends Specification { } + def "customChange without class fails expectedly"() { + when: + def node = new ParsedNode(null, "customChange") + def change = new CustomChangeWrapper() + change.load(node, resourceSupplier.simpleResourceAccessor) + + then: + thrown(ParsedNodeException.class) + } + def "load handles params in a 'params' collection"() { when: def node = new ParsedNode(null, "customChange")