I have a changeset with a customPrecondition and a customChange. When I run Liquibase the customPrecondition is not executed. In fact I can put any className and don't even get a ClassNotFound Exception or anything.
In liquibase-core/src/test/java/liquibase/precondition/ExampleCustomPrecondition.java reactivate the exception in the check() method. All tests still work.
In liquibase-core/src/test/resources/liquibase/parser/core/xml/testCasesChangeLog.xml, Line 214, put any random string as className. All tests still work.
Apache Maven 3.6.1 (d66c9c0b3152b2e69ee9bac180bb8fcc8e6af555; 2019-04-04T21:00:29+02:00)
Maven home: /home/michael/apache-maven-3.6.1
Java version: 11.0.3, vendor: Amazon.com Inc., runtime: /usr/lib/jvm/java-11-amazon-corretto
Default locale: de_DE, platform encoding: UTF-8
OS name: "linux", version: "4.19.0-1-amd64", arch: "amd64", family: "unix"