liquibase.ui.MockConsoleWrapper Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of liquibase-core Show documentation
Show all versions of liquibase-core Show documentation
Liquibase is a tool for managing and executing database changes.
package liquibase.ui;
import java.util.*;
public class MockConsoleWrapper extends ConsoleUIService.ConsoleWrapper {
final private List responses;
public MockConsoleWrapper(String... responses) {
super(null, false);
this.responses = new ArrayList<>(Arrays.asList(responses));
}
@Override
public boolean supportsInput() {
return true;
}
@Override
public String readLine() {
return responses.remove(0);
}
}