Package org.liquibase.maven.plugins

Source Code of org.liquibase.maven.plugins.LiquibaseUpdateTestingRollback

package org.liquibase.maven.plugins;

import liquibase.Contexts;
import liquibase.LabelExpression;
import liquibase.exception.LiquibaseException;
import liquibase.Liquibase;

/**
* Applies the DatabaseChangeLogs to the database, testing rollback. This is
* done by updating the database, rolling it back then updating it again.
*
* @description Liquibase UpdateTestingRollback Maven plugin
* @goal updateTestingRollback
*/
public class LiquibaseUpdateTestingRollback extends AbstractLiquibaseUpdateMojo {

    @Override
    protected void doUpdate(Liquibase liquibase) throws LiquibaseException {
        liquibase.updateTestingRollback(new Contexts(contexts), new LabelExpression(labels));
    }
}
TOP

Related Classes of org.liquibase.maven.plugins.LiquibaseUpdateTestingRollback

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.