Package liquibase.sdk.executor

Source Code of liquibase.sdk.executor.MockExecutor

package liquibase.sdk.executor;

import liquibase.executor.LoggingExecutor;
import liquibase.sdk.database.MockDatabase;
import liquibase.servicelocator.LiquibaseService;

import java.io.StringWriter;

@LiquibaseService(skip=true)
public class MockExecutor extends LoggingExecutor {

    public MockExecutor() {
        super(null, new StringWriter(), new MockDatabase());
    }

    public String getRanSql() {
        return getOutput().toString();
    }
}
TOP

Related Classes of liquibase.sdk.executor.MockExecutor

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.