View Javadoc

1   package liquibase.precondition;
2   
3   import liquibase.changelog.DatabaseChangeLog;
4   import liquibase.changelog.ChangeSet;
5   import liquibase.database.Database;
6   import liquibase.exception.PreconditionErrorException;
7   import liquibase.exception.PreconditionFailedException;
8   import liquibase.exception.ValidationErrors;
9   import liquibase.exception.Warnings;
10  
11  public class MockPrecondition implements Precondition {
12      public String getName() {
13          return "mock";
14      }
15  
16      public Warnings warn(Database database) {
17          return new Warnings();
18      }
19  
20      public ValidationErrors validate(Database database) {
21          return new ValidationErrors();
22      }
23  
24      public void check(Database database, DatabaseChangeLog changeLog, ChangeSet changeSet) throws PreconditionFailedException, PreconditionErrorException {
25          
26      }
27  }